Page 23 - MATLAB an introduction with applications
P. 23
8 ——— MATLAB: An Introduction with Applications
Table 1.11 On-line help
Function Description
help Lists topics on which help is available.
helpwin Opens the interactive help window.
helpdesk Opens the web browser based help facility.
help topic Provides help on topic.
lookfor string Lists help topics containing string.
demo Runs the demo program.
Table 1.12 Workspace information
Function Description
who Lists variables currently in the workspace.
whos Lists variables currently in the workspace with their size.
what Lists m-, mat- and mex-files on the disk.
clear Clears the workspace, all variables are removed.
clear x y z Clears only variables x, y, and z.
clear all Clears all variables and functions from workspace.
mlock fun Locks function fun so that clear cannot remove it.
munlock fun Unlocks function fun so that clear can remove it.
clc Clears command window, command history is lost.
home Same as clc.
clf Clears figure window.
Table 1.13 Directory information
Function Description
pwd Shows the current working directory.
cd Changes the current working directory.
dir Lists contents of the current directory.
ls Lists contents of the current directory, same as dir.
path Gets or sets MATLAB search path.
editpath Modifies MATLAB search path.
copyfile Copies a file.
mkdir Creates a directory.
Table 1.14 General information
Function Description
computer Tells you the computer type you are using.
clock Gives you wall clock time and date as a vector.
date Tells you the date as a string.
more Controls the paged output according to the screen size.
ver Gives the license and the version information about MATLAB installed on your computer.
bench Benchmarks your computer on running MATLAB compared to other computers.
F:\Final Book\Sanjay\IIIrd Printout\Dt. 10-03-09