Matlab help command
if you're ever stuck not knowing how to use a particular command in Matlab, you can simply turn to the help function. It's quite handy, really.
help x
All you need to do is type "help" followed by the name of the command you need help with.
Take "sin" for instance, if you're unsure how to use it, just type "help sin" and voila!
>> help sin
Matlab will search for relevant information and display a concise summary of the command's syntax.
Now, for those of you who are just starting out with Matlab, I should warn you that the help function may sometimes be a bit too concise.
In that case, you might want to use the doc function instead.
doc x
By typing "doc" followed by the command name (such as "doc sin"), you'll gain access to the complete documentation on that particular command.
For example, type doc sin on the command line and press enter.
>> doc sin
This command will access and display the complete Matlab documentation on the command
This documentation includes practical examples of usage as well as the command's syntax, making it quite useful indeed.