Page 9 - A Guide to MATLAB for Beginners and Experienced Users
P. 9
viii Contents
Built-in Functions 24
User-Defined Functions 25
Graphics 26
Graphing with ezplot 26
Modifying Graphs 27
Graphing with plot 28
Plotting Multiple Curves 30
3 Interacting with MATLAB 31
The MATLAB Interface 31
The Desktop 31
Menu and Tool Bars 33
The Workspace 33
The Working Directory 34
Using the Command Window 35
M-Files 36
Script M-Files 37
Function M-Files 39
Loops 41
Presenting Your Results 41
Diary Files 42
Presenting Graphics 43
Pretty Printing 45
A General Procedure 45
Fine-Tuning Your M-Files 46
Practice Set A: Algebra and Arithmetic 48
4 Beyond the Basics 50
Suppressing Output 50
Data Classes 51
String Manipulation 53
Symbolic and Floating Point Numbers 53
Functions and Expressions 54
Substitution 56
More about M-Files 56
Variables in Script M-Files 56
Variables in Function M-Files 57
Structure of Function M-Files 57