MATLAB Quick Reference
clear
Remove items from the workspace
fullfile
Build full filename from parts
Author: Jialong He
[email protected] http://www.bigfoot.com/~jialong_he
disp
Display text or array
info
Display contact information or toolbox Readme files
length
Length of vector
inmem
Functions in memory
load
Retrieve variables from disk
ls
List directory on UNIX
memory
Help for memory limitations
matlabroot
Get root directory of MATLAB installation
mlock
Prevent M-file clearing
mkdir
Make new directory
munlock
Allow M-file clearing
open
Open files based on extension
openvar
Open workspace variable in Array Editor, for graphical editing
pwd
Display current directory
tempdir
Return the name of the system’s temporary directory
pack
Consolidate workspace memory
tempname
Unique name for temporary file
save
Save workspace variables on disk
saveas
Save figure or model using specified format
size
Array dimensions
who, whos
List the variables in the workspace
workspace
Display the Workspace Browser, a GUI for managing the workspace
General Purpose Commands Managing Commands and Functions addpath
Add directories to MATLAB’s search path
doc
Display HTML documentation in Help browser
docopt
Display location of help file directory for UNIX platforms
genpath
Generate a path string
help
Display M-file help for MATLAB functions in the Command Window
helpbrowser
Display Help browser for access to all MathWorks online help
helpdesk
Display the Help browser
helpwin
Display M-file help and provide access to M-file help for all functions
lasterr
Last error message
lastwarn
Last warning message
license
license
lookfor
Search for specified keyword in all help entries
partialpath
Partial pathname
path
Control MATLAB’s directory search path
pathtool
Open the GUI for viewing and modifying MATLAB’s path
profile
Start the M-file profiler, a utility for debugging and optimizing code
Working with Operating Environment
profreport
Generate a profile report
beep
Controlling the Command Window
undocheckout Undo previous checkout from source control system unix
Execute a UNIX command and return the result
!
Execute operating system command
Starting and Quitting MATLAB finish
MATLAB termination M-file
exit
Terminate MATLAB
matlab
Start MATLAB (UNIX systems only)
matlabrc
MATLAB startup M-file
clc
Clear Command Window
echo
Echo M-files during execution
format
Control the display format for output
quit
Terminate MATLAB
home
Move cursor to upper left corner of Command Window
startup
MATLAB startup M-file
more
Control paged output for the Command Window
Operators and Special Characters +
Plus
-
Minus
Produce a beep sound
*
Matrix multiplication
.*
Array multiplication
rehash
Ref