Getting Started    

Command Window

Use the Command Window to enter variables and run functions and M-files. For more information on controlling input and output, see Controlling Command Window Input and Output.



Command History

Statements you enter in the Command Window are logged in the Command History. In the Command History, you can view previously run statements, and copy and execute selected statements.

To save the input and output from a MATLAB session to a file, use the diary function.

Running External Programs

You can run external programs from the MATLAB Command Window. The exclamation point character ! is a shell escape and indicates that the rest of the input line is a command to the operating system. This is useful for invoking utilities or running other programs without quitting MATLAB. On Linux, for example,

invokes an editor called emacs for a file named magik.m. When you quit the external program, the operating system returns control to MATLAB.


  Desktop Tools Start Button and Launch Pad