| |
| |
Preface | |
| |
| |
| |
Getting Started | |
| |
| |
| |
Introduction | |
| |
| |
| |
Typographical Conventions | |
| |
| |
| |
What's New in MATLAB 7 | |
| |
| |
| |
What's in Mastering MATLAB 7 | |
| |
| |
| |
Basic Features | |
| |
| |
| |
Simple Math | |
| |
| |
| |
The MATLAB Workspace | |
| |
| |
| |
About Variables | |
| |
| |
| |
Comments, Punctuation, and Aborting Execution | |
| |
| |
| |
Complex Numbers | |
| |
| |
| |
Floating-Point Arithmetic | |
| |
| |
| |
Mathematical Functions | |
| |
| |
| |
The MATLAB Desktop | |
| |
| |
| |
MATLAB Windows | |
| |
| |
| |
Managing the MATLAB Workspace | |
| |
| |
| |
Memory Management | |
| |
| |
| |
Number Display Formats | |
| |
| |
| |
Keeping a Session Log | |
| |
| |
| |
System Information | |
| |
| |
| |
The MATLAB Search Path | |
| |
| |
| |
Script M-Files | |
| |
| |
| |
Script M-File Use | |
| |
| |
| |
Block Comments and Code Cells | |
| |
| |
| |
Setting Execution Time | |
| |
| |
| |
Startup and Finish | |
| |
| |
| |
Arrays and Array Operations | |
| |
| |
| |
Simple Arrays | |
| |
| |
| |
Array Addressing or Indexing | |
| |
| |
| |
Array Construction | |
| |
| |
| |
Array Orientation | |
| |
| |
| |
Scalar-Array Mathematics | |
| |
| |
| |
Array-Array Mathematics | |
| |
| |
| |
Standard Arrays | |
| |
| |
| |
Array Manipulation | |
| |
| |
| |
Array Sorting | |
| |
| |
| |
Subarray Searching | |
| |
| |
| |
Array Manipulation Functions | |
| |
| |
| |
Array Size | |
| |
| |
| |
Arrays and Memory Utilization | |
| |
| |
| |
Multidimensional Arrays | |
| |
| |
| |
Array Construction | |
| |
| |
| |
Array Mathematics and Manipulation | |
| |
| |
| |
Array Size | |
| |
| |
| |
Numeric Data Types | |
| |
| |
| |
Integer Data Types | |
| |
| |
| |
Floating-Point Data Types | |
| |
| |
| |
Summary | |
| |
| |
| |
Cell Arrays and Structures | |
| |
| |
| |
Cell Array Creation | |
| |
| |
| |
Cell Array Manipulation | |
| |
| |
| |
Retrieving Cell Array Content | |
| |
| |
| |
Comma-Separated Lists | |
| |
| |
| |
Cell Functions | |
| |
| |
| |
Cell Arrays of Strings | |
| |
| |
| |
Structure Creation | |
| |
| |
| |
Structure Manipulation | |
| |
| |
| |
Retrieving Structure Content | |
| |
| |
| |
Comma-Separated Lists (Again) | |
| |
| |
| |
Structure Functions | |
| |
| |
| |
Summary | |
| |
| |
| |
Character Strings | |
| |
| |
| |
String Construction | |
| |
| |
| |
Numbers to Strings to Numbers | |
| |
| |
| |
String Evaluation | |
| |
| |
| |
String Functions | |
| |
| |
| |
Cell Arrays of Strings | |
| |
| |
| |
Searching with Regular Expressions | |
| |
| |
| |
Relational and Logical Operations | |
| |
| |
| |
Relational Operators | |
| |
| |
| |
Logical Operators | |
| |
| |
| |
Operator Precedence | |
| |
| |
| |
Relational and Logical Functions | |
| |
| |
| |
NaNs and Empty Arrays | |
| |
| |
| |
Control Flow | |
| |
| |
| |
For Loops | |
| |
| |
| |
While Loops | |
| |
| |
| |
If-Else-End Constructions | |
| |
| |
| |
Switch-Case Constructions | |
| |
| |
| |
Try-Catch Blocks | |
| |
| |
| |
Functions | |
| |
| |
| |
M-File Function Construction Rules | |
| |
| |
| |
Input and Output Arguments | |
| |
| |
| |
Function Workspaces | |
| |
| |
| |
Functions and the MATLAB Search Path | |
| |
| |
| |
Creating Your Own Toolbox | |
| |
| |
| |
Command-Function Duality | |
| |
| |
| |
Function Handles and Anonymous Functions | |
| |
| |
| |
Nested Functions | |
| |
| |
| |
M-file Debugging and Profiling | |
| |
| |
| |
Debugging Tools | |
| |
| |
| |
Syntax Checking and File Dependencies | |
| |
| |
| |
Profiling M-Files | |
| |
| |
| |
File and Directory Management | |
| |
| |
| |
Native Data Files | |
| |
| |
| |
Data Import and Export | |
| |
| |
| |
Low-Level File I/O | |
| |
| |
| |
Directory Management | |
| |
| |
| |
FTP File Operations | |
| |
| |
| |
Set, Bit, and Base Functions | |
| |
| |
| |
Set Functions | |
| |
| |
| |
Bit Functions | |
| |
| |
| |
Base Conversions | |
| |
| |
| |
Time Computations | |
| |
| |
| |
Current Date and Time | |
| |
| |
| |
Date Format Conversions | |
| |
| |
| |
Date Functions | |
| |
| |
| |
Timing Functions | |
| |
| |
| |
Plot Labels | |
| |
| |
| |
Matrix Algebra | |
| |
| |
| |
Sets of Linear Equations | |
| |
| |
| |
Matrix Functions | |
| |
| |
| |
Special Matrices | |
| |
| |
| |
Sparse Matrices | |
| |
| |
| |
Sparse Matrix Functions | |
| |
| |
| |
Data Analysis | |
| |
| |
| |
Basic Statistical Analysis | |
| |
| |
| |
Basic Data Analysis | |
| |
| |
| |
Data Analysis and Statistical Functions | |
| |
| |
| |
Data Interpolation | |
| |
| |
| |
One-Dimensional Interpolation | |
| |
| |
| |
Two-Dimensional Interpolation | |
| |
| |
| |
Triangulation and Scattered Data | |
| |
| |
| |
Summary | |
| |
| |
| |
Polynomials | |
| |
| |
| |
Roots | |
| |
| |
| |
Multiplication | |
| |
| |
| |
Addition | |
| |
| |
| |
Division | |
| |
| |
| |
Derivatives and Integrals | |
| |
| |
| |
Evaluation | |
| |
| |
| |
Rational Polynomials | |
| |
| |
| |
Curve Fitting | |
| |
| |
| |
Cubic Splines | |
| |
| |
| |
Basic Features | |
| |
| |
| |
Piecewise Polynomials | |
| |
| |
| |
Cubic Hermite Polynomials | |
| |
| |
| |
Integration | |
| |
| |
| |
Differentiation | |
| |
| |
| |
Spline Interpolation on a Plane | |
| |
| |
| |
Fourier Analysis | |
| |
| |
| |
Discrete Fourier Transform | |
| |
| |
| |
Fourier Series | |
| |
| |
| |
Optimization | |
| |
| |
| |
Zero Finding | |
| |
| |
| |
Minimization in One Dimension | |
| |
| |
| |
Minimization in Higher Dimensions | |
| |
| |
| |
Practical Issues | |
| |
| |
| |
Integration and Differentiation | |
| |
| |
| |
Integration | |
| |
| |
| |
Differentiation | |
| |
| |
| |
Differential Equations | |
| |
| |
| |
IVP Format | |
| |
| |
| |
ODE Suite Solvers | |
| |
| |
| |
Basic Use | |
| |
| |
| |
Setting Options | |
| |
| |
| |
BVPs, PDEs, and DDEs | |
| |
| |
| |
Two-Dimensional Graphics | |
| |
| |
| |
The plot Function | |
| |
| |
| |
Linestyles, Markers, and Colors | |
| |
| |
| |
Plot Grids, Axes Box, and Labels | |
| |
| |
| |
Customizing Plot Axes | |
| |
| |
| |
Multiple Plots | |
| |
| |
| |
Multiple Figures | |
| |
| |
| |
Subplots | |
| |
| |
| |
Interactive Plotting Tools | |
| |
| |
| |
Screen Updates | |
| |
| |
| |
Specialized 2-D Plots | |
| |
| |
| |
Easy Plotting | |
| |
| |
| |
Text Formatting | |
| |
| |
| |
Summary | |
| |
| |
| |
Three-Dimensional Graphics | |
| |
| |
| |
Line Plots | |
| |
| |
| |
Scalar Functions of Two Variables | |
| |
| |
| |
Mesh Plots | |
| |
| |
| |
Surface Plots | |
| |
| |
| |
Mesh and Surface Plots of Irregular Data | |
| |
| |
| |
Changing Viewpoints | |
| |
| |
| |
Camera Control | |
| |
| |
| |
Contour Plots | |
| |
| |
| |
Specialized 3-D Plots | |
| |
| |
| |
Volume Visualization | |
| |
| |
| |
Easy Plotting | |
| |
| |
| |
Summary | |
| |
| |
| |
Using Color and Light | |
| |
| |
| |
Understanding Colormaps | |
| |
| |
| |
Using Colormaps | |
| |
| |
| |
Displaying Colormaps | |
| |
| |
| |
Creating and Altering Colormaps | |
| |
| |
| |
Using Color to Describe a Fourth Dimension | |
| |
| |
| |
Lighting Models | |
| |
| |
| |
Summary | |
| |
| |
| |
Images, Movies, and Sound | |
| |
| |
| |
Images | |
| |
| |
| |
Image Formats | |
| |
| |
| |
Image Files | |
| |
| |
| |
Movies | |
| |
| |
| |
Image Utilities | |
| |
| |
| |
Sound | |
| |
| |
| |
Summary | |
| |
| |
| |
Printing and Exporting Graphics | |
| |
| |
| |
Printing and Exporting Using Menus | |
| |
| |
| |
Command Line Printing and Exporting | |
| |
| |
| |
Printers and Export File Formats | |
| |
| |
| |
PostScript Support | |
| |
| |
| |
Choosing a Renderer | |
| |
| |
| |
Handle Graphics Properties | |
| |
| |
| |
Setting Defaults | |
| |
| |
| |
Publishing | |
| |
| |
| |
Summary | |
| |
| |
| |
Handle Graphics | |
| |
| |
| |
Objects | |
| |
| |
| |
Object Handles | |
| |
| |
| |
Object Properties | |
| |
| |
| |
get and set | |
| |
| |
| |
Finding Objects | |
| |
| |
| |
Selecting Objects with the Mouse | |
| |
| |
| |
Position and Units | |
| |
| |
| |
Default Properties | |
| |
| |
| |
Common Properties | |
| |
| |
| |
Plot Objects | |
| |
| |
| |
Group Objects | |
| |
| |
| |
Annotation Axes | |
| |
| |
| |
Linking Objects | |
| |
| |
| |
New Plots | |
| |
| |
| |
Rendering Speed | |
| |
| |
| |
Callbacks | |
| |
| |
| |
M-File Examples | |
| |
| |
| |
Summary | |
| |
| |
| |
Graphical User Interfaces | |
| |
| |
| |
What's a GUI? | |
| |
| |
| |
Predefined Dialog Boxes | |
| |
| |
| |
M-File Dialog Boxes | |
| |
| |
| |
Dialog Box Summary | |
| |
| |
| |
GUI Object Hierarchy | |
| |
| |
| |
GUI Creation Fundamentals | |
| |
| |
| |
GUI Object Size and Position | |
| |
| |
| |
Capturing Mouse Actions | |
| |
| |
| |
The Event Queue | |
| |
| |
| |
Callback Programming | |
| |
| |
| |
M-File Examples | |
| |
| |
| |
Guide | |
| |
| |
| |
Summary | |
| |
| |
| |
MATLAB Classes and Object-Oriented Programming | |
| |
| |
| |
Overloading | |
| |
| |
| |
Class Creation | |
| |
| |
| |
Subscripts | |
| |
| |
| |
Converter Functions | |
| |
| |
| |
Precedence, Inheritance, and Aggregation | |
| |
| |
| |
MATLAB Programming Interfaces | |
| |
| |
| |
Accessing MATLAB Arrays | |
| |
| |
| |
Calling C or FORTRAN from MATLAB | |
| |
| |
| |
Calling MATLAB from C or FORTRAN | |
| |
| |
| |
Exchanging Data with MAT-Files | |
| |
| |
| |
Shared Libraries | |
| |
| |
| |
Serial Communications | |
| |
| |
| |
Source Code Control Systems | |
| |
| |
| |
Web Services | |
| |
| |
| |
Summary | |
| |
| |
| |
Extending MATLAB with Java | |
| |
| |
| |
Java Overview | |
| |
| |
| |
Java Classes | |
| |
| |
| |
Java Objects | |
| |
| |
| |
Java Methods | |
| |
| |
| |
Object Properties | |
| |
| |
| |
Data Exchange | |
| |
| |
| |
Java Arrays | |
| |
| |
| |
Java Functions | |
| |
| |
| |
Examples | |
| |
| |
| |
Summary | |
| |
| |
| |
Windows Application Integration | |
| |
| |
| |
COM Objects: Client/Server Communication | |
| |
| |
| |
Dynamic Data Exchange | |
| |
| |
| |
MATLAB Notebook | |
| |
| |
| |
MATLAB COM-Related Toolboxes | |
| |
| |
| |
Summary | |
| |
| |
| |
Getting Help | |
| |
| |
| |
Command Window Help | |
| |
| |
| |
The Help Browser | |
| |
| |
| |
Internet Resources | |
| |
| |
| |
Mastering MATLAB 7 Help | |
| |
| |
| |
Summary | |
| |
| |
| |
Examples, Examples, Examples | |
| |
| |
| |
Vectorization | |
| |
| |
| |
JIT-Acceleration | |
| |
| |
| |
Up-Down Sequence | |
| |
| |
| |
Vandermonde Matrix | |
| |
| |
| |
Repeated Value Creation and Counting | |
| |
| |
| |
Differential Sums | |
| |
| |
| |
Structure Manipulation | |
| |
| |
| |
Inverse Interpolation | |
| |
| |
| |
Polynomial Curve Fitting | |
| |
| |
| |
Nonlinear Curve Fitting | |
| |
| |
| |
Picture-in-a-Picture Zoom | |
| |
| |
| |
MATLAB Release Information | |
| |
| |
Index | |