Matlab Basic Commands

Posted on Posted in Matlab, Programming

Matlab Basic Commands

Command Description
clc Command Line Clear
clear Clear All Workspace Variables
clear a Clear Variable a only
commandwindow select or open commandwindow
whos a Size in bytes, class and attributes of variable a
whos lists all variables data structures
ans Show last result
close all closes all figures windows
close(f1) closes only figure f1 window
class(obj) returns objects class
winopen(pvd) Open current folder
load filename loads .mat file all variables to workspace
save filename a,b save variables a,b to matlab .mat file
save filename save all workspace variables to to matlab .mat file
save -append filename a append a variable to matlab .mat file
beep Makes the small beep sound
ver Show Matlab version along with Lists version of all toolboxes
help function Show the help for function
docsearch string search specific string in documentation
doc function Shoe detailed help documentation for function
inputdlg Input. dialog box
web google.com opens webadress
methods(A) list. class methods for A