Introduction to Matlab |
There are three ways to get help in Matlab.
This is the easiest way to find out more about specific Matlab commands. If you have forgotten small details, for example. The command help < name > gives information about the Matlab command < name > .
help sin % Information about sin. help i % Information about i . help log % This is enough information about log % to show log means log to the base e . why % Provides general answers.
By itself, the command help gives a list of topics in Matlab. Initially, many of the topics will be mysterious. The most familiar topic from the list is probably `elementary functions'. To explore this topic use the command help elfun. In the most recent versions of Matlab the lookfor command can also be used to search for relevant information.
help % Gives a list topics. help elfun % More help in the area `elfun', i.e. % elementary functions like sin, exp,.. help sign % Information about a new command % from the list in 'elfun' lookfor logarithm % Gives the name of some % functions related to logarithms lookfor legend % Finds former students
The lookfor command is quite useful; however it may be very slow in the Mathematics PC lab. This is due to the heavy network traffic. But lookfor should be quite fast on a single user PC.
It is also possible to get help by clicking on the `Help' menu above the command window. From the `Help' menu, select the `Help Window' item (by clicking) and the list of help topics is displayed. The advantage of this method is that it is possible to navigate around various topics by double clicking on them. For example, in the help window double click on elfun to find the same information given by the help elfun command. This is a good way to explore Matlab's commands.
Matlab also comes with help documentation that can be read by Web browsers. This may be used by
To wind down, type the Matlab command demo. This brings a menu of demonstrations and examples to explore.