Tagged: dir

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

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

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

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

addpath

addpath Add directory to search path. addpath DIRNAME prepends the specified directory to the current matlabpath. Surround the DIRNAME in quotes if the name contains a space. addpath DIR1 DIR2 DIR3 … prepends all...