Why do I get an error when executing protected MATLAB (P-code) files?
11 views (last 30 days)
Show older comments
I execute a protected MATLAB (P-code) file and receive the following error:
??? D:\Matlab6p1\work\test.p is a P-file written by a newer version of MATLAB and cannot be read.
Accepted Answer
MathWorks Support Team
on 31 Aug 2009
P-code files are not expected to be forward compatible, that is, a MATLAB file P-coded in a newer release of MATLAB is not expected to function when executed on an older release of MATLAB. If a P-code needs to be used over multiple releases of MATLAB, it should be created using the oldest release of MATLAB that will be executing the P-code.
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!