Use Sublime Text 2 to run Matlab
This article describes how to build a MATLAB development environment in the Sublime Text 2 Text editor. Of course, Notepad ++ and other editors should be able to be implemented in a similar way.
1. Remove the bulky GUI and run MALTAB as a command line
Matlab can run in the form of command lines (I bet many people do not know), the method is as follows:
- Click Start, Run, and enter cmd.exe to enter the command line window
- Enter the matlab-nosplash-nodesktop-r file name to run the script. Note that the file name does not contain the. m suffix, and the m file must either be located in the MATLAB search path or in the current working path.
Among them,-nosplash closes the startup screen,-nodesktop closes the GUI (without this will open the complete MATLAB Interface),-r refers to the run script, for more details, see: http://asc.2dark.org/node/111
2. Build a MATLAB development environment under Sublime Text
- Create a New Build System: click Tool> Build System> New Build System. The System automatically creates a New JSON file.
- Edit the JSON file and change the content:
{"Cmd": ["E:/MATLAB/R2012a/bin/matlab" (use your own path here), "-nosplash", "-nodesktop ", "-r", "$ file_base_name"], "selector": "source. m "}
- Save a file name for this JSON file (this name will become the name of the new Build System and appear in the Build menu)
- Open or create. m file, click View-> Syntax-> open all with current extension .. select MATLAB in the pop-up list (this is because Sublime Text 2 currently sets. the m file is used as Objective-C to automatically set syntax highlighting)
- The settings are complete. Edit a MATLAB file, select the newly created configuration under Build System, and click Tool> Build.
Install Matlab on Ubuntu Server
Joint programming of Matlab and C/C ++: Calling C/C ++ code from Matlab
Matlab Implementation of binary classification SVM
The entire function fix, floor, ceil and round in Matlab
Compile the cuda. cu file using Matlab.
The Linux Matlab Server is further transformed into an Application Server)
Matlab Coordinate graph animation to dynamically display data
Ubuntu 14.04 Installation Process
This article permanently updates the link address: