How to call MATLAB functions from the Linux command line?

前端 未结 8 889
一整个雨季
一整个雨季 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:19

    You could compile myfile into a standalone program and run that instead. Use Matlab's compiler mcc for that (if you have it), more information is provided in this question.

    This answer was copied from my answer to another question.

提交回复
热议问题