Mastering MATLAB
A Comprehensive Tutorial and Reference
by Duane Hanselman and Bruce Littlefield
- Preface
- Getting Started
- Introduction
- Typographical Conventions
- Basic MATLAB Features
- Simple Math
- The MATLAB Workspace
- Saving and Retrieving Data
- Number Display Formats
- About Variables
- Comments and Punctuation
- Complex Numbers
- Mathematical Functions
- Script Files
- File Management
- Command Window Control
- MATLAB at Startup
- On-line Help
- Arrays
- Simple Arrays
- Array Addressing
- Array Construction
- Array Orientation
- Scalar-Array Mathematics
- Array-Array Mathematics
- Array Manipulation
- Subarray Searching
- Array Manipulation Functions
- M-File Examples
- Matric Operations and Functions
- Sets of Linear Equations
- Matrix Functions
- Special Matrices
- Sparse Matrices
- Relational and Logical Operations
- Relational Operators
- Logical Operators
- Relational and Logical Functions
- NaNs and Empty Matrices
- Text
- Character Strings
- String Conversions
- String Functions
- Decision Making: Control Flow
- For Loops
- While Loops
- If-Else-End Structures
- Summary
- M-File Example
- M-file Functions
- Rules and Properties
- Data Analysis
- Data Analysis Functions
- M-File Examples
- Polynomials
- Roots
- Multiplication
- Addition
- Division
- Derivatives
- Evaluation
- Rational Polynomials
- M-File Examples
- Summary
- Curve Fitting and Interpolation
- Curve Fitting
- One-dimensional Interpolation
- Two-dimensional Interpolation
- M-File Examples
- Summary
- Cubic Splines
- Basic Features
- Piecewise Polynomials
- Integration
- Differentiation
- Summary
- Numerical Analysis
- Plotting
- Minimization
- Zero Finding
- Integration
- Differentiation
- Differential Equations
- M-File Examples
- Summary
- Fourier Analysis
- Fast Fourier Transform
- Fourier Series
- Summary
- Low-Level File I/O
- Debugging Tools
- 2-D Graphics
- The plot function
- Line Styles, Markers and Colors
- Adding Grids and Labels
- Adding a Legend
- Customizing Plot Axes
- Holding Plots
- Subplots
- Multiple Figure Windows
- Screen Rendering
- The zoom Command
- The ginput Function
- Other Basic 2-D Plots
- Specialized 2-D Plot Functions
- M-File Examples
- Summary
- 3-D Graphics
- The plot3 Function
- Changing Viewpoints
- Scalar Functions of Two Variables
- Interpolation of Rough or Scattered Data
- Mesh Plots
- Surface Plots
- Contour Plots
- 2-D Plots of 3-D Data
- Changing Viewpoints
- Other Functions
- Movies
- Summary
- Using Color
- Understanding Color Maps
- Using Color Maps
- Displaying Color Maps
- Creating and Altering Color Maps
- Using More Than One Color Map in a Figure
- Using Color to Describe a Fourth Dimension
- Lighting Models
- Summary
- Handle Graphics
- Who Should Create GUIs - And Why?
- GUI Object Hierarchy
- Menus
- Controls
- Programming and Callback Considerations
- Pointer And Mouse Button Events
- Rules for Interrupting Callbacks
- M-file Examples
- Dialog Boxes and Requesters
- User-Contributed GUI M-files
- Summary
- The Symbolic Math Toolbox
- Introduction
- Symbolic Expressions
- Operations on Symbolic Expressions
- Differentiation and Integration
- Plotting Symbolic Expressions
- Formatting and Simplifying Expressions
- Variable Precision Arithmetic
- Solving Equations
- Linear Algebra and Matrices
- Summary
- Internet Resources
- USENET Newsgroup
- Anonymous FTP
- World Wide Web
- MATLIB Automated E-Mail Response System
- The MathWorks MATLAB Digest
- The MATLAB Newsletter
- The MathWorks E-mail and Network Addresses
- The Mastering MATLAB Toolbox
Appendices
- Appendix A
- MATLAB Quick Reference Tables
- Appendix B
- Handle Graphics Property Tables
- Appendix C
- Symbolic Math Toolbox Quick Reference Tables
- Appendix D
- Mastering MATLAB Toolbox Quick Reference Tables
- Appendix E
- Mastering Matlab Toolbox Reference
Index