In email you sent me another important detail, namely that your primary error is
"file is created before 2007 b."
At this point you have two possibilities:
- Use MATLAB R2007a or earlier to run the code; OR
- Go back to the author of the code and have them recreate the .p files for a recent MATLAB version; OR
- Give up on the code
Backwards compatibility for old .p files has long been lost. There is nothing you can do about it (other than use an old version of MATLAB). There is no setting you can use, no backwards-compatibility flags you can set. 
Additional note: R2025a (currently in pre-release) is likely the last MATLAB release that will support defining classes by using scheme.m / schema.p, so the author is unlikely to bother to upgrade now if they have not already upgraded.



