無法連接到Matlab!<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />我試圖通過JMP使用matlab函數,但我甚至無法與Mac OS(10.12)的matlab交談。當我將MATLABROOT設置為“/ Applications / MATLAB_R2011b”時,
MATLAB connect命令返回UNKNOWN。當我將MALABROOT設置為 “/Applications/MATLAB_R2011b.app”,這是matlab的內容告訴我當我在Matlab中運行matlabroot時,我得到了
SAS擴展“tkintml”加載在訪問或評估“膠水”時失敗,名稱默認為此處(1); / * ### * / MATLABConnection = MATLAB Connect(Echo); / * ### * /
x = MatlabConnection <<已連接; / * ### * / Show(x)/ * ### * /;
我找不到有關SAS擴展的任何信息。
任何幫助將不勝感激。謝謝,伊夫
回复:連接到Matlab時遇到問題!我很高興聽到你讓它工作但很抱歉你現在遇到了不同的問題。
我不確定那裡發生了什麼。最好通過發送電子郵件向我們的技術支持部門開放賽道 support@jmp.com 。
找到解決方案後回到這裡。
-Jeff
回复:連接到Matlab時遇到問題!非常感謝杰夫,這解決了我的大部分問題。我現在可以讓JMP正確地與Matlab交談。但是,如果在腳本結束時我有一個Matlab term()語句(它將正確終止會話),那麼在matlab init()語句中調用以重新打開連接將無法正常工作。因此,如果嘗試連續兩次運行一個簡單的腳本,第一個將工作,但第二個不會,因為它無法重新建立與matlab的連接。但是,這可能與我原來的問題沒有任何關係。
非常感謝,伊夫
回复:連接到Matlab時遇到問題!對不起,對不起。
你試過說明了嗎?這裡 :
To install MATLAB on Macintosh:Invoke the Automator application:Select Finder ► Go ► Applications or...Double click the Automator applicationSelect the Application document type and click Choose.In the Actions view, expand the Library tree and select Utilities.In the Utilities actions column, double-click Run Shell Script.In the Run Shell Script editor area, replace the current text with the following text:
export MATLABROOT="{Path to your MATLAB installation}" export DYLD_LIBRARY_PATH="$MATLABROOT/bin/maci64:$MATLABROOT/sys/os/maci64:$DYLD_LIBRARY_PATH" export PATH="$MATLABROOT/bin:$MATLABROOT/bin/maci64:$PATH" /usr/bin/env /usr/bin/open -a {Path to your JMP installation}
Set the Shell option to /bin/bash.Set the Pass input option to as arguments.Replace {Path to your MATLAB installation} with the path of your MATLAB installation, for example, /Applications/MATLAB_R2013a.app.Replace {Path to your JMP installation} with the path of your JMP installation, for example, /Applications/JMP Pro 11.app.Save the Automation application to your desktop.To use the JMP MATLAB support, you must invoke JMP using this application to insure proper setup of the MATLAB runtime environment.