Fast Fourier Transform Example ...........................
2-84
Alternatives to the eval Function ............................
2-86
Why Avoid the eval Function? .............................
2-86
Variables with Sequential Names ..........................
2-86
Files with Sequential Names ..............................
2-87
Function Names in Variables .............................
2-87
Field Names in Variables ................................
2-88
Error Handling ........................................
2-88
Classes (Data Types)
Overview of MATLAB Classes
3
Fundamental MATLAB Classes ...............................
3-2
Numeric Classes
4
Integers .................................................
4-2
Integer Classes .........................................
4-2
Creating Integer Data ....................................
4-2
Arithmetic Operations on Integer Classes .....................
4-4
Largest and Smallest Values for Integer Classes ................
4-4
Floating-Point Numbers ....................................
4-6
Double-Precision Floating Point ............................
4-6
Single-Precision Floating Point .............................
4-6
Creating Floating-Point Data ............................... 4-6
Arithmetic Operations on Floating-Point Numbers ..............
4-8
Largest and Smallest Values for Floating-Point Classes ...........
4-9
Accuracy of Floating-Point Data ...........................
4-10
Avoiding Common Problems with Floating-Point Arithmetic ......
4-11
Create Complex Numbers ..................................
4-13
Infinity and NaN .........................................
4-14
Infinity ..............................................
4-14
NaN ................................................
4-14
Identifying Numeric Classes ................................
4-16
Display Format for Numeric Values ..........................
4-17
Integer Arithmetic ........................................
4-19
vii
2-84
Alternatives to the eval Function ............................
2-86
Why Avoid the eval Function? .............................
2-86
Variables with Sequential Names ..........................
2-86
Files with Sequential Names ..............................
2-87
Function Names in Variables .............................
2-87
Field Names in Variables ................................
2-88
Error Handling ........................................
2-88
Classes (Data Types)
Overview of MATLAB Classes
3
Fundamental MATLAB Classes ...............................
3-2
Numeric Classes
4
Integers .................................................
4-2
Integer Classes .........................................
4-2
Creating Integer Data ....................................
4-2
Arithmetic Operations on Integer Classes .....................
4-4
Largest and Smallest Values for Integer Classes ................
4-4
Floating-Point Numbers ....................................
4-6
Double-Precision Floating Point ............................
4-6
Single-Precision Floating Point .............................
4-6
Creating Floating-Point Data ............................... 4-6
Arithmetic Operations on Floating-Point Numbers ..............
4-8
Largest and Smallest Values for Floating-Point Classes ...........
4-9
Accuracy of Floating-Point Data ...........................
4-10
Avoiding Common Problems with Floating-Point Arithmetic ......
4-11
Create Complex Numbers ..................................
4-13
Infinity and NaN .........................................
4-14
Infinity ..............................................
4-14
NaN ................................................
4-14
Identifying Numeric Classes ................................
4-16
Display Format for Numeric Values ..........................
4-17
Integer Arithmetic ........................................
4-19
vii
