Environment: ubuntu 16.04
Environment configuration:
Reference: VS Code Configuration environment Matlab
operating:
1, first enter the directory where the .m file, open a command line
2, m into the file directory, run
matlab -nodesktop -nosplash -r matlabfile
Only the file name matlabfile, you can not add .m
You can not open a graphical interface to run matlab
3, to run after entering the name matlabfile matlab input through the command line, you need to save between running
4, when exiting matlab, enter:
exit