![]() |
Graeme Chandler
Matlab is one of the fastest and most enjoyable ways to solve problems numerically. The computational problems arising in most undergraduate courses can be solved much more quickly with Matlab, than with the standard programming languages (Fortran, C, Java, etc.). It is particularly easy to generate some results, draw graphs to look at the interesting features, and then explore the problem further. By minimizing human time, Matlab is particularly useful in the initial investigation of real problems; even though they may eventually have to be solved using more computationally efficient ways on super computers.
This introduction gives a quick way to become familiar with the most important parts of Matlab. The first five sections emphasize simple arithmetic, matrix-vector operations (including solving systems of equations), and graphing functions and data. The later sections describe some more advanced features, including 3D graphics. There are also some suggestions about using Matlab to do larger projects, and including Matlab results and graphs in reports.
The best way to used this introduction is to sit down at a computer and type in the commands as they are described. Look at Matlab's response, and check that the answers are what you expect. It is also a good idea to do the small exercises. It makes sure that the commands become part of an active Matlab vocabulary. Each lesson should take less than one hour. More information about any Matlab command can be found by using the on line help features described in lesson 3.
These notes assume basic familiarity with the Windows interface.. For instance, you need to know about
If you are unsure about this, seek help from another student or tutor.
The complete Matlab Manuals are available on line in the Mathematics department's PC laboratories. They contain an introductory guide for new users, and an especially good introduction to Matlab's graphics.
More information on Matlab can be found in the books
or try the Mathworks web site
|
If you wish to use Matlab at home, the student edition of Matlab is available from bookshops at the cost of about $100.00 (or you can borrow a copy from the library.) The student version is `crippled' and only works for small problems. Nevertheless, it should suffice for almost all assignments in undergraduate courses. It is usually possible to develop a program on the student version and do the final full size problem on the Mathematics Department's computers if necessary.
Here we describe the steps needed to start Matlab on the PC's in the Mathematics Computer Laboratories (Rooms 519 and 420). On other machines the start-up procedure will be different. However the Matlab commands are the same on all machines.
To get started, type one of these commands: helpwin, helpdesk, or demo. For information on all of the MathWorks products, type tour. >>
Matlab is now ready!
All commands to Matlab are typed in after the Matlab prompt, i.e.\. the symbol > > . They are then sent to Matlab to be implemented by pressing the [Enter] key.