23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Command and Function Syntax<br />

• To recall a specific command by name without having to scroll through your<br />

earlier commands one by one, type the starting letters of the command,<br />

followed by the up arrow key.<br />

• Open the Command History window (View > Command History) tosee<br />

all previous commands. Double-clickthecommandyouwanttoexecute.<br />

For more information: See Recalling Previous Lines and Command History<br />

in the <strong>MATLAB</strong> Desktop Tools and Development Environment documentation.<br />

Clearing Commands<br />

If you have typed a command that you then decide not to execute, you can<br />

clear it from the Command Window by pressing the Escape (Esc) key.<br />

Suppressing Output to the Screen<br />

To suppress output to the screen, end statements with a semicolon. This can<br />

be particularly useful when generating large matrices.<br />

A = magic(100);<br />

% Create matrix A, but do not display it.<br />

12-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!