Use Sublime Text 2 to run Matlab

Source: Internet
Author: User

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:

  1. Click Start, Run, and enter cmd.exe to enter the command line window
  2. 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
  1. Create a New Build System: click Tool> Build System> New Build System. The System automatically creates a New JSON file.
  2. 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 "}
  3. 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)
  4. 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)
  5. 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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.