Running .m scripts with MCR

조회 수: 6 (최근 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