本文介绍了如何使用pcode在MatLab中重新生成文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行包含.p数据文件的.m文件时,出现以下错误消息:

When I run a .m file containing a .p datafile I get the following error message:

The P-code file /Users/....
was generated prior to MATLAB version 7.5 (R2007b) and is no longer supported.  Use pcode
to regenerate the file using MATLAB R2007b or later.

如何根据提示提示使用pcode重新生成文件?

How should I use pcode to regenerate the file as suggested by the hint?

我尝试键入pcode filenamepcode(filename),但没有成功.有什么建议?我还要指出,由于该问题,.m不起作用,因此我不能简单地忽略警告.

I try to type pcode filename and pcode(filename) but without any success. Any suggestions? Also I should mention that the .m does not work because of this problem so I cannot simply ignore the warning.

推荐答案

Pcode文件是字节码转换的matlab函数,在此过程中会造成很大的混淆.

Pcode files are byte code translated matlab functions, which are heavily obfuscated during that process.

要解决此问题,您必须获得用于创建pcode文件的原始m函数.它通常具有相同的文件名,但具有不同的扩展名.然后,您可以再次运行pcode或使用m代码.

To solve this problem, you have to get the original m-function which was used to create the pcode file. It typically has the same file name with a different extension. Then you could run pcode again, or use the m-code.

这篇关于如何使用pcode在MatLab中重新生成文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-11 09:14