A Sample Command Description Next: Previous: A Sample Function Description Up: Format of Descriptions



A Sample Command Description

Command descriptions have a format similar to function descriptions except that the word `Function' is replaced by `Command. Commands are functions that may called without surrounding their arguments in parentheses. For example here is the description for Octave's cd command:

cd dir Command
chdir dir Command
Change the current working directory to dir. For example cd ~/octave changes the current working directory to ~/octave. If the directory does not exist an error message is printed and the working directory is not changed.