MATLAB: Compatibility : get the Matlab minimum version required to run a program

automatic;MATLABminimumscriptversion

Hey,
Is there a way to automatically know which Matlab minimum version your .m program is compatible with ? Something like the ver command maybe ?
Thanks for help.
Nicolas

Best Answer

The only reliable way I have found is to actually test it. An alternative is to carefully read the documentation of every function you use to determine if you're using a syntax that was introduced later.
Edit: for a really high-level view of the changes from release to release, see this thread.