简体   繁体   English

如何在Matlab上同时运行两个程序?

[英]How to run two programs simultaneously on Matlab?

I have one license of Matlab on my computer. 我的计算机上有一个Matlab许可证。 I want to be able to run two programs simultaneously in Matlab in order to save my time, but I am not aware of how can I do that. 我希望能够在Matlab中同时运行两个程序以节省我的时间,但我不知道我该怎么做。 I would like to know how it can be done. 我想知道如何做到这一点。 Thanks. 谢谢。

You cannot run two programs at the same time in a single MATLAB session. 您不能在单个 MATLAB会话中同时运行两个程序。 Even if you could, there would be no time savings, because MATLAB does not become idle while running one program. 即使你可以,也不会节省时间,因为MATLAB在运行一个程序时不会空闲。

If you have a multi-core machine and the Parallel Computing Toolbox, you should be able to use additional cores to run other programs in parallel workers. 如果您有一台多核机器和Parallel Computing Toolbox,您应该能够使用其他内核在并行工作程序中运行其他程序。

On my system at least, I can open independent copies of Matlab. 至少在我的系统上,我可以打开Matlab的独立副本。 (In windows 7, right click on the icon in the system tray and click on the Matlab R201xx icon to open a new copy). (在Windows 7中,右键单击系统托盘中的图标,然后单击Matlab R201xx图标以打开新副本)。 Your license and mileage may vary. 您的驾照和里程可能会有所不同

On a mac, you can go to the terminal and enter the following to begin a new independent Matlab session (allows you to have multiple "sessions" of Matlab running concurrently). 在Mac上,您可以转到终端并输入以下内容以开始一个新的独立Matlab会话(允许您同时运行Matlab的多个“会话”)。

/Applications/MATLAB_R2013a_Student.app/bin/matlab /Applications/MATLAB_R2013a_Student.app/bin/matlab

  • The location and version names may change for your independent applications 您的独立应用程序的位置和版本名称可能会更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM