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
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