Running .m scripts with MCR

3 Ansichten (letzte 30 Tage)
Mayank
Mayank am 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?

Antworten (1)

Walter Roberson
Walter Roberson am 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.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by