I have this script (Run_Matlab_No_GUI.vbs) which is supposed to run a MATLAB file test.m.
test.m is supposed to produce a file test.txt.
I run it on a windows command window.
Here is the listing:
# Run_Matlab_No_GUI.vbs
Set ml = CreateObject("Matlab.Application")
ml.Visible = false
ml.Execute("test.m")
ml.Execute("pause(4)")
% test.m
a=1;
b=1;
c=a+b;
dlmwrite('C:\tmp\HEEDS1\test.txt',c);
Problem: it runs without errors but is not producing the text.txt file.
- Path to MATLAB:
C:\Program Files\MATLAB\R2015a\bin - Path to test.m:
C:\tmp\HEEDS1
Command line is in the test.m folder