- 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
Facing issue in executing P code
조회 수: 9 (최근 30일)
이전 댓글 표시
Hi,
I have P code of few files in my scripts from the author. I do not have orginal .m file.
I am not able to run these P code files and getting error. I'm stuck in the situation from 1 month.
Could you please guide me how the run

댓글 수: 0
답변 (1개)
Walter Roberson
2025년 2월 3일
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:
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!