Tagged: where

quit

quit Quit MATLAB session. quit terminates MATLAB after running the script FINISH.M, if it exists. The workspace information will not be saved unless FINISH.M calls SAVE. If an error occurs while executing FINISH.M, quitting...

Matlab Expressions

Matlab Expressions Variables Like most other programming languages, the MATLAB language provides mathematical expressions, but unlike most programming languages, these expressions involve entire matrices. MATLAB does not require any type declarations or dimension statements....

Manipulating Matrices

Matrices and Magic Squares In MATLAB, a matrix is a rectangular array of numbers. Special meaning is sometimes attached to 1-by-1 matrices, which are scalars, and to matrices with only one row or column,...

Desktop Tools

This section provides an introduction to MATLAB’s desktop tools. You can also use MATLAB functions to perform most of the features found in the desktop tools. The tools are: “Command Window” “Command History” “Launch...

while

while Repeat statements an indefinite number of times. The general form of a while statement is: while expression statements END The statements are executed while the real part of the expression has all non-zero...

if

if if statement condition. The general form of the if statement is if expression statements ELSEIF expression statements ELSE statements END The statements are executed if the real part of the expression has all...

pack

pack Consolidate workspace memory. pack performs memory garbage collection. Extended MATLAB sessions may cause memory to become fragmented, preventing large variables from being stored. pack is a command that saves all variables on disk,...