Chapter 1 The Windows of the Desktop ............................ 1
1.1 Windows Properties ......................................... 3
1.2 The Help Browser .......................................... 10
1.3 The Editor ................................................ 12
Chapter 2 A Preliminary Approach to Data and M-files ........... 15
2.1 Data Types ................................................ 17
2.2 Constants, Variables and Names ............................ 19
2.3 Data Properties ........................................... 20
2.4 Examples .................................................. 21
2.5 M-files ................................................... 28
Chapter 3 Scripts and Functions as M-files ..................... 31
3.1 TheM-file ................................................. 33
3.2 The Script ................................................ 34
3.3 The Anonymous Function .................................... 36
3.4 Examples of Anonymous Function ............................ 38
3.5 The Function: Basic Syntax ................................ 41
3.6 The Local Workspace of a Function ......................... 45
3.7 The Types of Functions: Primary, Subfunction and Nested ... 48
Chapter 4 Numerical Arrays ..................................... 53
4.1 Creating an Array ......................................... 55
4.2 Specifying a Part of an Array ............................. 59
4.3 Built-in Arrays ........................................... 63
4.4 Expanding or Diminishing Size of an Array ................. 64
4.5 Changing the Shape of an Array ............................ 67
4.6 Shifting and Sorting an Array ............................. 71
4.7 Measuring an Array ........................................ 74
4.8 The Numbers as Elements of an Array ....................... 79
4.9 The Simplest Arithmetic Operators and Operations .......... 83
Chapter 5 Other Types of Arrays ................................ 85
5.1 Logical Types ............................................. 87
5.1.1 Basic logical functions ............................ 87
5.1.2 Logical operators .................................. 88
5.1.3 Relational operators ............................... 89
5.1.4 Other logical functions ............................ 90
5.1.5 Logical values in array indexing ................... 90
5.2 Characters and Strings .................................... 92
5.2.1 Creating string arrays ............................. 93
5.2.2 Strings comparisons ................................ 95
5.2.3 Other functions relating string arrays ............. 97
5.3 Dates and Times ........................................... 99
5.3.1 Format conversions ................................ 100
5.3.2 Other date and time functions ..................... 105
5.4 Structures ............................................... 105
5.5 Cell Arrays .............................................. 112
Chapter 6 The Figure Window for Graphics Objects .............. 121
6.1 Figure, Root and Their Properties ........................ 123
6.2 The Functions SET, GET and GCF ........................... 127
6.3 Axes and UI Objects ...................................... 129
6.4 Axes Related Functions ................................... 131
6.5 The LINE and TEXT Functions .............................. 136
6.6 The Objects Properties ................................... 142
Chapter 7 Plot 2-D and Image .................................. 153
7.1 Plot 2-D ................................................. 155
7.1.1 The objects hierarchy ............................. 155
7.1.2 The PLOT and SUBPLOT commands ..................... 159
7.1.3 Commands complementary to PLOT .................... 159
7.1.4 Resize, print and export of a plot ................ 163
7.1.5 Interactive control over graphical objects ........ 173
7.2 The Image Object .......................................... 178
7.2.1 Image as array .................................... 178
7.2.2 The image functions ............................... 178
7.2.3 Image types ....................................... 181
7.2.4 Examples .......................................... 182
Chapter 8 Flow Control ........................................ 191
8.1 The Programming Constructs ............................... 193
8.2 The Conditional Control if ............................... 194
8.3 The Conditional Control switch ........................... 197
8.4 The Loop Control for ..................................... 199
8.5 The Loop Control while ................................... 203
8.6 The Loop Control continue and break ...................... 207
Appendixes .................................................... 209
Appendix 1
MATLAB Functions Categories ................................... 211
Appendix 2
MATLAB Functions and Objects Properties
List of functions (A) ......................................... 215
List of functions (B - C) ..................................... 219
List of functions (D - E) ..................................... 226
List of functions (F - G) ..................................... 232
List of functions (H - I) ..................................... 238
List of functions (J - M) ..................................... 245
List of functions (N - P) ..................................... 250
List of functions (Q - S) ..................................... 255
List of functions (T - Z) ..................................... 265
Appendix 3
Operators List ................................................ 271
Appendix 4
A Table of Special Ascii Codes ................................ 273
Index ......................................................... 275
|