Basically I have a m file which looks like
function Z=myfunc()
% do some calculations
dlmwrite('result.out',Z,',');
end
What I want is just execute it from command line without getting into Matlab. I tried several options (-nodisplay -nodesktop -nojvm -r ....), none of them worked. I end up getting into Matlab and have to type "quit" to exit.
Anyone know the solution??
Thanks in advance.