从命令提示符运行时,此类型的变量不支持MATLAB Dot索引

时间:2018-06-15 21:31:52

标签: php apache matlab indexing cvx

我在拍摄我的CVX解算器时遇到了麻烦。我想通过PHP从命令提示符运行我的matlab脚本。这是我输入的内容:

"C:\\...\matlab.exe" -nodisplay -nodesktop -nosplash -logfile out.txt -r "run('C:\\...\main_test.m');"

日志显示此错误:

Dot indexing is not supported for variables of this type.
osolvers=cvx___.solvers.list;

当我直接从MATLAB的命令窗口运行脚本并添加whos cvx___时,这就是我得到的:

Trial>> main_test
Setting CVX paths...already set!
Name          Size          Bytes  Class     Attributes
cvx___      1x1             29896  struct    global  

我正在通过PHP脚本运行命令提示符。我不明白为什么从PHP运行脚本创建此错误,而从命令提示符运行完全相同的命令会产生此错误。

0 个答案:

没有答案