Tagged: m-files

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

echo

Matlab Echo Command echo Echo commands in M-files. echo ON turns on echoing of commands inside Script-files. echo OFF turns off echoing. echo file ON where ‘file’ is a function name causes the named...

dir

dir List directory. dir directory_name lists the files in a directory. Pathnames and wildcards may be used.  For example, dir *.m lists all the M-files in the current directory. D = dir(‘directory_name’) returns the...