How to call MATLAB functions from the Linux command line?

前端 未结 8 892
一整个雨季
一整个雨季 2020-12-12 14:46

Basically I have an m file which looks like

function Z=myfunc()
    % Do some calculations
    dlmwrite(\'result.out\',Z,\',\');
end
         


        
8条回答
  •  眼角桃花
    2020-12-12 15:07

    Use:

    matlab -nosplash -nodesktop -logfile remoteAutocode.log -r matlabCommand
    

    Make sure matlabCommand has an exit as its last line.

提交回复
热议问题