INTRODUCTION TO MATLAB

Preface This is a tutorial to help you get started in Matlab. Examples of Matlab code in this pamphlet are in typewriter font like this. As you read through the text, type and execute in Matlab all of the examples, either at the command line prompt or in a test program you make called test.m. Longer sections of code are set off and named. This code can be found as files on the Physics 330 web page at physics.byu.edu/Courses/Computational. This booklet can also be used as a reference manual because it is short, it has lots of examples, and it has a table of contents and an index. It is almost true that the basics of Matlab are in chapters 1-7 while physics applications are in chapters 11-13. Please tell us about mistakes and make suggestions to improve the text (michael_ware@byu.edu). To find more details see the very helpful book Mastering MATLAB 7