Run MATLAB in the command line

Source: Internet
Author: User

Recently, you need to use MATLAB to run some programs. However, if you double-click the shortcut on the desktop to open it, the startup will be slow and the startup will occupy a large amount of memory. The key is that I don't need it to run other components. I just need it like a background program. At this time, I thought of the command line method, so I found the method for running MATLAB under the command line on the Internet.

In Unix

-When nodesktop starts JVM (Jave Virtual Machine), it does not start desktop, but the help interface and preferences interface can still be called up through cmdline, that is, the JVM starts but does not start desktop, and other displays can be started; however, Matlab does not record the commands executed this time in cmd history.

-Nodisplay: starts JVM, does not start desktop, does not start any display related, and ignores any display environment variables. That is, the JVM is started but cannot be displayed.

-If nojvm is not started, all related activities, including graphic interface display, help interface, and preferences interface, cannot be displayed because the JVM is not started.

-Nosplash only does not display the log screen at startup, and can be started properly by JVM or desktop.

In Windows

For Windows,-nodisplay does not seem to be valid, but desktop will still be displayed;-nojvm,-nodesktop does not display desktop, but a simple command-line window will appear, that is, there will be no graphical interface at all, like Linux
In addition:

-R: run the MATLAB cmd command. Multiple commands are separated by semicolons or commas (no space) and are enclosed by double quotation marks. A single command does not need double quotation marks. This is usually used in batch processing mode. The running file must be in the startup directory of MATLAB or in its search path, and cannot contain the path name or suffix name,
-Logfile: saves the export line output to the file.

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.