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
Pcode files are byte code translated matlab functions, which are heavily obfuscated during that process.
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.