2

I am teaching some matlab classes and we have some version-ing issues ... some students use versions as old as 2008b and some of the computers in the lab have versions as old as 2007a (or as new as 2012b). I want to create some pcode files which will run on all of these versions ... that way they can check their results without seeing the actual code that created them.

I know that Matlab 2013a (the version I use daily) can operate pcode files made from any previous version but the older versions can't run pcode made with my computer.

Is there any way to create backwards compatible pcode files? I know I can just find the oldest version and make a pcode on that computer and distribute it ... but that's really annoying. Especially because I don't have licences for versions that are as old as some of the students (my oldest is 2010a and some students/lab-computers are still stuck on 2008b)

Thanks,

Will

4

1 回答 1

1

从文档中:

在 MATLAB 7.5(R2007b 版)中重新设计了 pcode 算法。您可以在任何当前版本的 MATLAB 中运行较旧的 P 文件;但是,即将发布的版本将不会运行在 7.5 版之前创建的 P 文件。在 7.5 或更高版本中生成的文件无法在 MATLAB 7.4 或更早版本中运行。

docsearch pcode用于查看,展开“更多关于,提示”)。

由于缺乏任何相关的提示或帮助,我怀疑 pcode 不能在 2007a 之前和 2007b 之后的任何一种方式之间转换。

根据我的经验,我在版本之间使用 pcode 从来没有遇到过问题。我认为 7.5 版本中的这种算法更改是比较罕见的事情。

于 2013-07-22T18:46:26.810 回答