Why are P-files creating problems with different MATLAB releases?

use case 1:
--------------
I generate a P-file from a MATLAB function in MATLAB 7.8 (R2009a). When I try to run this P-file in MATLAB 7.6 (R2008a), I receive the following error message:
% error ... unrecognized file<here
Use case 2:
--------------
I generate a P-file from a MATLAB function in MATLAB 7.11 (R2010b). When I try to run this P-file in MATLAB 7.2 (R2006a), I receive the following error message:
error... Corrupt P-file ...

 Accepted Answer

This change has been incorporated into the documentation in Release 2010b (R2010b). For previous releases, read below for any additional information:
The process of the decrypted intermediate MATLAB code format has changed in MATLAB 7.6 (R2008a). Therefore, a P-file generated in MATLAB 7.6 (R2008a) or later will not run in older releases.
To avoid this issue, use the same version of MATLAB for generation and execution of a p-code file.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products

Release

R2009a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!