开发者

Run matlab 2008 command from Matlab 2010?

I'm running Matlab 2010 and there's some function I want to run from my Matlab 2008. Is it possible to do it directly开发者_JAVA百科 from the command line of matlab 2010 instead of starting Matlab 2008, type in the command and see what comes up?

p.s. I need this because of the version differences in toolboxes I have for the two Matlab - the "report" function only runs in matlab 2008.

Thanks in advance.


Use ! to call to start the second copy of MATLAB from the first via a shell command, e.g.,

!"C:\Program Files\MATLAB\R2008b\bin\matlab.exe" -r disp(1:5)

The -r option means "execute the following code on startup". You could type the name of a script that runs the report there. See the startup options help page for more. (For example, since you are just using that copy of MATLAB as a slave, rather than interacting directly with it, you may want to turn off the JVM for speed.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜