Matlab Quick Reference

ADVERTISEMENT

MATLAB Quick Reference
Remove items from the workspace
Build full filename from parts
clear
fullfile
Display text or array
Display contact information or toolbox Readme files
disp
info
Author: Jialong He
Length of vector
Functions in memory
length
inmem
Retrieve variables from disk
List directory on UNIX
load
ls
General Purpose Commands
Help for memory limitations
Get root directory of MATLAB installation
memory
matlabroot
mlock
Prevent M-file clearing
mkdir
Make new directory
Managing Commands and Functions
Allow M-file clearing
Open files based on extension
munlock
open
Add directories to MATLAB’s search path
addpath
Open workspace variable in Array Editor, for graphical
Display current directory
pwd
Display HTML documentation in Help browser
openvar
doc
editing
Return the name of the system’s temporary directory
tempdir
Display location of help file directory for UNIX platforms
docopt
Consolidate workspace memory
pack
Unique name for temporary file
tempname
Generate a path string
genpath
Save workspace variables on disk
save
Undo previous checkout from source control system
undocheckout
Display M-file help for MATLAB functions in the
Save figure or model using specified format
saveas
help
Execute a UNIX command and return the result
Command Window
unix
Array dimensions
size
Display Help browser for access to all MathWorks online
Execute operating system command
!
helpbrowser
List the variables in the workspace
help
who, whos
Display the Workspace Browser, a GUI for managing the
helpdesk
Display the Help browser
workspace
workspace
Starting and Quitting MATLAB
Display M-file help and provide access to M-file help for
helpwin
all functions
MATLAB termination M-file
finish
Last error message
lasterr
Terminate MATLAB
exit
Controlling the Command Window
Last warning message
lastwarn
Start MATLAB (UNIX systems only)
matlab
Clear Command Window
clc
license
license
MATLAB startup M-file
matlabrc
Echo M-files during execution
echo
Search for specified keyword in all help entries
lookfor
Terminate MATLAB
quit
Control the display format for output
format
Partial pathname
partialpath
startup
MATLAB startup M-file
Move cursor to upper left corner of Command Window
home
Control MATLAB’s directory search path
path
Control paged output for the Command Window
more
Open the GUI for viewing and modifying MATLAB’s
Operators and Special Characters
pathtool
path
Plus
+
Start the M-file profiler, a utility for debugging and
profile
Working with Operating Environment
Minus
optimizing code
-
Generate a profile report
Produce a beep sound
Matrix multiplication
profreport
beep
*
Change working directory
Array multiplication
rehash
Refresh function and file system caches
cd
.*
Check file into source control system
Matrix power
Remove directories from MATLAB’s search path
checkin
^
rmpath
Check file out of source control system
Array power
Open MathWorks Technical Support Web Page
checkout
.^
support
List file
Get name of source control system, and PVCS project
Kronecker tensor product
type
kron
cmopts
filename
Backslash or left division
Display version information for MATLAB, Simulink, and
\
ver
Copy file
toolboxes
copyfile
Slash or right division
/
Allow custom source control system
Get MATLAB version number
customverctrl
version
Array division, right and left
./ and .\
Point Help browser or Web browser at file or Web site
Delete files or graphics objects
web
delete
Colon
:
Save session to a disk file
List MATLAB-specific files in current directory
diary
what
Parentheses
( )
Display a directory listing
Display README files for MATLAB and toolboxes
dir
whatsnew
Brackets
[ ]
Locate functions and files
dos
Execute a DOS command and return the result
which
Curly braces
{}
Edit an M-file
edit
Decimal point
.
Get filename parts
fileparts
Continuation
...
Managing Variables and the Workspace
Display Current Directory browser, for viewing files
filebrowser

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education