Tagged: char

Controlling Command Window Input and Output

The format Function The format function controls the numeric format of the values displayed. The function affects only how numbers are displayed, not how MATLAB software computes or saves them. Here are the different...

plot

plot Linear plot. plot(X,Y) plots vector Y versus vector X. If X or Y is a matrix, then the vector is plotted versus the rows or columns of the matrix, whichever line up. If...

save

SAVE Save workspace variables to disk. SAVE FILENAME saves all workspace variables to the binary “MAT-file” named FILENAME.mat. The data may be retrieved with LOAD. If FILENAME has no extension, .mat is assumed. SAVE,...

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...

delete

delete Delete file or graphics object. delete file_name deletes the named file from disk. Wildcards may be used. For example, delete *.p deletes all P-files from the current directory. Use the functional form of...