Start up Matlab. If this is your first time doing so, you will note that three frames appear in the window, one giving the Current Directory, one for a Command History, and the Command Window. In the command window you should see some identifying text followed by two greater-than symbols >>; this is the Matlab prompt.
You will be running one of Matlab's out-of-the-box demos. The demo will contain each of the following:
The demo you will be running is called intro. To start it, enter at the command prompt
>> playshow introWhat you learn from this demo should be sufficient to allow you to carry out the exercises below, which are to be done in Matlab.
Scilab
Recall that Scilab is a similar piece of software and, while it does not have all the functionality of Matlab, is being actively maintained and may be downloaded and installed on your local computer (at least, for each of Windows, Mac OS X and Linux) free of charge. Before quitting Matlab or turning to the exercises, start up Scilab, re-run (from the Matlab command prompt) the demo you just went through, and this time try the commands at the Scilab command prompt -->. You will notice that some commands are identical and produce the same output. Scilab is not, however, an identical clone (Was that redundant?) of Matlab. For instance, Scilab does not recognize
--> help plot(You may notice that Scilab is phasing out the plot command in favor of plot2d.)
--> poly(A, "x")instead. (Your professor learned the Scilab syntax by typing help poly.) Notice the difference in output from what you receive in Matlab. Then try
--> poly(A, "y")to see what difference the second argument to this command makes.
Exercises
This page maintained by:
Thomas L. Scofield
Department of Mathematics and Statistics,
Calvin College