Running .m scripts with MCR

23 views (last 30 days)
Mayank
Mayank on 21 Nov 2011
I have MCR v 714 installed on WinXP. I have a .m script sent by a friend. How do I run the script? Which windows executable should i call? Do I need to compile it first?

Answers (1)

Walter Roberson
Walter Roberson on 21 Nov 2011
You would need the MATLAB Compiler product, and MATLAB itself, in order to compile the .m script to be used by MCR. The MATLAB Compiler includes MCR, so you would not gain any advantage from using the existing MCR 7.14 (and that version is only suitable for programs compiled with the MATLAB Compiler for MATLAB 2010b.)
Only since about MATLAB 2010b can MATLAB script files be compiled at all; earlier versions could compile only MATLAB function files.
The Windows executable you would call would be the .exe file produced by the MATLAB Compiler.
Note: the MATLAB Compiler product requires the Academic or Professional version of MATLAB; no version is available for MATLAB Student Version.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!