How to open a second instance of MATLAB in Mac OS X?

34 ビュー (過去 30 日間)
Adam Attarian
Adam Attarian 2011 年 6 月 13 日
コメント済み: Walter Roberson 2016 年 8 月 29 日
Hi Everyone,
I'd like to be able to have open a second instance of MATLAB on my Mac -- able to switch between them and have them be completely independent of each other. Is this possible?
I'm working on comparing two packages of code, and having one copy run one set, and another running the other set would be far advantageous than switching back and forth in a single instance of MATLAB.
Thanks for any advice!
  2 件のコメント
Nicholas
Nicholas 2016 年 8 月 29 日
You can right select on the Matlab icon in the dock and select "Open Additional Instance".
Walter Roberson
Walter Roberson 2016 年 8 月 29 日
That only works from R2012a and onward.

サインインしてコメントする。

回答 (3 件)

Kelly Kearney
Kelly Kearney 2011 年 6 月 13 日
From a terminal window, run /Applications/MATLAB_R2010a.app/bin/matlab (or whatever the applicable location of the matlab shell script is). You can make an alias to this script if you want a quick startup alternative.
  2 件のコメント
Walter Roberson
Walter Roberson 2011 年 6 月 13 日
Does this work for MATLAB on OS-X ?
For another package I work with, it is not possible to open multiple instances of the application on OS-X, because OS-X instead just activates the existing instance (as a deliberate OS design choice.)
Kelly Kearney
Kelly Kearney 2011 年 6 月 13 日
編集済み: Walter Roberson 2016 年 8 月 29 日
The process of starting new instances on OS-X has varied over the last few releases. In older versions, the "Start Matlab" shortcut that appeared in the dock when launching the first instance of Matlab could be used to launch subsequent ones. The newer releases make things a little more complicated, so that the dock shortcut no longer has this behavior (it just activates the existing instance, as you say). Here's the tech note documenting my comment: http://www.mathworks.com/support/solutions/en/data/1-8G0VT7/?solution=1-8G0VT7

サインインしてコメントする。


Thorsten
Thorsten 2016 年 8 月 29 日
編集済み: Thorsten 2016 年 8 月 29 日
Right click on the icon (in the dock) of the Matlab hat is already running, select: "Open Additional Instance of Matlab". (Matlab R2015b, MacOS 10.11.6 "El Capitan")
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 8 月 29 日
That only works from R2012a and onward.

サインインしてコメントする。


Jason Stockmann
Jason Stockmann 2013 年 4 月 3 日
編集済み: Jason Stockmann 2013 年 4 月 3 日
I got around this by going into /MATLAB_2012b.app/bin using the Mac Finder, then right-clicking on the "matlab" Unix executable file and selecting "Make Alias". When I double click the alias I get a second instance of Matlab version 2012b and there don't appear to be any licensing issues.
I did this in Mac OSX 10.7.5 ("Lion").

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by