Are MEX-files and P-code forward and backwards compatible across MATLAB versions?

5 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 5 Apr 2024 at 0:00
Edited: MathWorks Support Team on 5 Apr 2024 at 2:04
MEX-files and P-code are usually backwards compatible, which means you may be able to run any MEX-file or P-code that was created on an earlier version of MATLAB on later versions of MATLAB. If you do not observe this with a MEX-file, you may need to recompile the MEX-file from source code.
You may find that sometimes you will have forwards compatibility and a file created on a newer version of MATLAB runs on an older version of MATLAB, but this is not supported.

More Answers (0)

Categories

Find more on Programming Utilities in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!