Running .m scripts with MCR

4 次查看(过去 30 天)
Mayank
Mayank 2011-11-21
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?

回答(1 个)

Walter Roberson
Walter Roberson 2011-11-21
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.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by