Run Matlab in Linux without graphical environment?

后端 未结 5 1221
情深已故
情深已故 2021-02-04 07:54

I am going to run a Matlab program in a remote Linux server using SSH. I was wondering how to run Matlab in Linux with only command line, which means there is no graphical envir

5条回答
  •  悲&欢浪女
    2021-02-04 08:14

    Depending of your need, an alternative is to do :

    matlab -nosplash -nodesktop -wait -log -r "Matlab Script Line 1;Matlab Script Line 2;exit;"
    

    It's the same method used by Azure DevOps Pipeline to log all Matlab Jobs Output to their online CLI Window.

    Reference: Self-Hosted Windows Agent

    Location: C:\agent\_work\_tasks\RunMATLABCommand_28fdff80-51b4-4b6e-83e1-cfcf3f3b25a6\0.2.15\bin\run_matlab_command.bat

提交回复
热议问题