Mastering MATLAB 5
A Comprehensive Tutorial and Reference

by Duane Hanselman and Bruce Littlefield

Preface
  1. Getting Started
    1. Introduction
    2. Typographical Conventions
    3. What's New in MATLAB 5
  2. Basic Features
    1. Simple Math
    2. The MATLAB Workspace
    3. About Variables
    4. Comments, Punctuation, and Aborting Execution
    5. Complex Numbers
    6. Mathematical Functions
  3. The Command Window
    1. Managing the MATLAB Workspace
    2. Number Display Formats
    3. Command Window Control
    4. System Information
  4. Script M-files
  5. Files and Directory Management
    1. The MATLAB Workspace
    2. Saving, Loading and Deleting Variables
    3. Special Purpose File I/O
    4. Low Level File I/O
    5. Disk File Manipulation
    6. The MATLAB Search Path
    7. MATLAB at Startup
  6. Arrays and Array Operations
    1. Simple Arrays
    2. Array Addressing or Indexing
    3. Array Construction
    4. Array Orientation
    5. Scalar-Array Mathematics
    6. Array-Array Mathematics
    7. Standard Arrays
    8. Array Manipulation
    9. Subarray Searching
    10. Array Manipulation Functions
    11. Array Size
  7. Multidimensional Arrays
    1. Array Construction
    2. Array Mathematics and Manipulation
    3. Array Size
  8. Relational and Logical Operations
    1. Relational Operators
    2. Logical Operators
    3. Relational and Logical Functions
    4. NaNs and Empty Arrays
  9. Set, Bit, and Base Functions
    1. Set Functions
    2. Bit Functions
    3. Base Conversions
  10. Character Strings
    1. String Construction
    2. Numbers to Strings to Numbers
    3. String Functions
    4. Cell Arrays of Strings
  11. Time Functions
    1. Current Date and Time
    2. Date Format Conversions
    3. Date Functions
    4. Timing Functions
    5. Plot Labels
  12. Cell Arrays and Structures
    1. Creating and Displaying Cell Arrays
    2. Combining and Reshaping Cell Arrays
    3. Retrieving Cell Array Contents
    4. Comma Separated Lists
    5. Cell Arrays of Character Strings
    6. Creating and Displaying Structures
    7. Retrieving Structure Field Contents
    8. Conversion and Test Functions
  13. Control Flow
    1. For Loops
    2. While Loops
    3. If-Else-End Constructions
    4. Switch-Case Constructions
  14. Function M-files
    1. M-file Construction Rules
    2. Input and Output Arguments
    3. Function M-files and the MATLAB Search Path
    4. Creating Your Own Toolboxes
    5. Command-Function Duality
    6. In-line Functions and feval
  15. Debugging and Profiling Tools
    1. Debugging Tools
    2. Profiling M-files
  16. Numerical Linear Algebra
    1. Sets of Linear Equations
    2. Matrix Functions
    3. Special Matrices
    4. Sparse Matrices
    5. Sparse Matrix Functions
  17. Data Analysis
    1. Basic Statistical Analysis
    2. Basic Data Analysis
    3. Data Analysis and Statistical Functions
  18. Polynomials
    1. Roots
    2. Multiplication
    3. Addition
    4. Division
    5. Derivatives
    6. Evaluation
    7. Rational Polynomials
    8. Curve Fitting
  19. Interpolation
    1. One-dimensional Interpolation
    2. Two-dimensional Interpolation
    3. Triangulation and Scattered Data
  20. Cubic Splines
    1. Basic Features
    2. Piecewise Polynomials
    3. Integration
    4. Differentiation
    5. Spline Interpolation on a Plane
  21. Fourier Analysis
    1. Discrete Fourier Transform
    2. Fourier Series
  22. Optimization
    1. Zero Finding
    2. Minimization in One Dimension
    3. Minimization in Multiple Dimensions
    4. Practical Issues
  23. Integration and Differentiation
    1. Integration
    2. Differentiation
  24. Ordinary Differential Equations
    1. Initial Value Problem Format
    2. ODE Suite Solvers
    3. Basic Use
    4. ODE File Options
    5. Solver Options
    6. Finding Events
  25. Object Oriented Programming
    1. Object Identification
    2. Creating a Class
    3. The Constructor
    4. Object Precedence
    5. Displaying Objects
    6. Overloading Functions
    7. Adding Stack Elements
    8. Communicating Between Workspaces
    9. Removing Stack Elements
    10. Examining Stack Contents
    11. Overloading Operators
    12. Converter Functions
    13. Inheritance
  26. 2-D Graphics
    1. The plot function
    2. Line Styles, Markers and Colors
    3. Plotting Styles
    4. Plot Grids, Axes Box, and Labels
    5. Customizing Plot Axes
    6. Multiple Plots
    7. Multiple Figures
    8. Subplots
    9. Interactive Plotting Tools
    10. Screen Updates
    11. Specialized 2-D Plots
    12. Quick Plots
    13. Text Formating
  27. 3-D Graphics
    1. Line Plots
    2. Scalar Functions of Two Variables
    3. Mesh Plots
    4. Surface Plots
    5. Mesh and Surface Plots of Irregular Data
    6. Changing Viewpoints
    7. Contour Plots
    8. Specialized 3-D Plots
  28. Using Color and Light
    1. Plotting Styles
    2. Understanding Colormaps
    3. Using Colormaps
    4. Displaying Colormaps
    5. Creating and Altering Colormaps
    6. Using More Than One Colormap
    7. Using Color to Describe a Fourth Dimension
    8. Lighting Models
  29. Images, Movies and Sound
    1. Images
    2. Image Formats
    3. Image Files
    4. Movies
    5. Imaging Utilities
    6. Sound
  30. Printing and Exporting Graphics
    1. Printing From the Menu
    2. Positioning and Resizing Graphics
    3. Printing from the Command Line
    4. Selecting a Device Driver
    5. Additional Device Drivers
    6. Other Printing Options
    7. Changing Defaults
    8. Exporting Images
    9. Application Notes
  31. Handle Graphics
    1. Who Needs Handle Graphics?
    2. Objects
    3. Object Handles
    4. Object Properties
    5. The Universal Functions get and set
    6. Finding Objects
    7. Selecting Objects with the Mouse
    8. Position and Units
    9. Printing Figures
    10. Default Properties
    11. Common Properties
    12. New Plots
    13. M-File Examples
    14. Callbacks
    15. Summary
  32. Graphical User Interfaces
    1. GUI?: What's a GUI?
    2. Who Should Create GUIs - And Why?
    3. GUI Object Hierarchy
    4. Menus
    5. Controls
    6. Programming and Callback Considerations
    7. Pointer And Mouse Button Events
    8. Rules for Interrupting Callbacks
    9. M-file Examples
    10. Utility Functions
    11. GUIDE
    12. User-Contributed GUI M-files
    13. Summary
  33. Dialog Boxes and Requesters
    1. Dialog Boxes
    2. Requesters
    3. Utility Functions
    4. Maintaining Focus
  34. Help
    1. Command Window Help
    2. The Help Window
    3. The Help Desk
  35. Internet Resources
    1. MathWorks Web Site
    2. Other MathWorks Resources
    3. Other Network Resources
    4. Internet E-mail and Network Addresses
  36. The Mastering MATLAB Toolbox

Appendices
A:
MATLAB Function Listing
B:
Axes Object Properties
C:
Figure Object Properties
D:
Image Object Properties
E:
Light Object Properties
F:
Line Object Properties
G:
Patch Object Properties
H:
Root Object Properties
I:
Surface Object Properties
J:
Text Object Properties
K:
Uicontrol Object Properties
L:
Uimenu Object Properties

Index