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