我想使用 VBA 运行 MATLAB 脚本。我尝试运行以下代码
Set Matlab = CreateObject("Matlab.Application")
result = Matlab.Execute("path to the script")
MsgBox (result)
但它不会在 msgbox 中返回任何内容,也没有修改 MATLAB 工作区。我怎么知道它运行了脚本?
我想使用 VBA 运行 MATLAB 脚本。我尝试运行以下代码
Set Matlab = CreateObject("Matlab.Application")
result = Matlab.Execute("path to the script")
MsgBox (result)
但它不会在 msgbox 中返回任何内容,也没有修改 MATLAB 工作区。我怎么知道它运行了脚本?