无法连接到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.