Back to the Control Room



First Steps

First steps



I will attempt to describe the workings of Matlab by example. Let us suppose that you wish to write a program that would draw a graph of x^2 vs. x.

First, you would have to go to the editor window and write the program that would calculate X^2 for various values of x. This is described in the programming section of this documentation.

Then, you would have to include the command to create the graph, as discussed in the graphing section.

Lastly, you would probably want to print the result. This is accomplished by simply typing in "print" at the command line after the graph is produced. You could also include "print" in your .m file as the last step of the program.