 ## Matlab 5.2 Manual 1999 ## Table of Contents

MATLAB Manual Title Page

 Chapter 1 Introduction to MATLAB Chapter 2 Basic Procedures in Using MATLAB Chapter 3 Example Problems Solved with MATLAB Chapter 5 Logical Operators and Functions Chapter 6 Using MATLAB to Display Results Chapter 8 Functions that Operate on Arrays Chapter 9 The Main Group of Matrix Operations Chapter 10 MATLAB m-Files Chapter 12 New Features of Matlab Chapter 13 Structures, Cells and Other Arays Matlab List of Figures

Introduction to Matlab

1.1 Discussion
1.2 Links to other Web Sites
1.3 Use of help

Basic Procedures in Using Matlab

2.1 Discussion
2.2 Entering MATLAB and Using help and demo
2.3 Defining Arrays and Arithmetic Operations with them
2.4 Saving and Printing your Work
2.5 Matrix Operations with Arrays
2.6 Element by Element Operations on Arrays
2.7 Plotting Results
2.8 Find Roots of Equations: Using Polynomial Approximations

Example Problems Solved with Matlab

3.1 Discussion
3.2 Controlling Your Screen Output with disp and format
3.3 Solution of Simultaneous Equations
3.4 Data Fitting
3.5 Using Polynomials
3.6 Trial and Error Solutions
3.7 Contour Plots and a Simple Function
3.8 Easy Editing During a MATLAB Session
3.9 Communicating with Other Systems and Languages

Arithmetic Operations on the Elements in Arrays

4.1 Operations on Scalars
4.2 Operations on Vectors of the Same Length
4.3 Operations of a Vector with a Scalar
4.4 Matrices Used with the Operators

Logical Operators and Functions

5.1 The Logical Operators: not, and, or, exclusive or
5.2 Associated Logical Functions: any, all, find
5.3 Looking for Special Numbers: NaN and Inf

Using Matlab to Display Results

6.1 Two-Dimensional Plotting Functions in MATLAB
6.1.1 Using fplot
6.1.2 Annotating fplot
6.1.3 Making a bar graph
6.1.4 Making a pie chart
6.1.5 Using plot and yxplot
6.4.1 Using Plot Handles
6.4.2 Printing and Saving Graphics Files
6.4.3 Images and Graphs

More Useful Matlab Arithmetic Functions
Functions that Operate on Arrays

8.1 The sum and cumsum Functions
8.2 The prod and cumprod Functions
8.3 The max and min Functions
8.4 The sort Function
8.5 The mean and median Functions
8.6 Moments and the Standard Deviation Function: std
8.7 The diff Function and an Approximate Derivative

The Main Group of Matrix Operartions

9.1 Matrix Multiply
9.2 Determinants and Matrix Division

Matlab m-files

10.1 Discussion
10.2 Loops with for and while
10.3 Tests with if Statements
10.4 Global and Local Variables Used in Functions and m-files
10.5 The Heading of a MATLAB Function

Finding Errors and Testing Programs

11.1 Discussion
11.2 Diagnostic Messages
11.3 Using echo
11.4 The keyboard Command

Matlab List of Figures

Figure 2.1 Sin(t) and Cos(t)
Figure 2.2 Looking for a root
Figure 3.1 Approximations to Experimental Data
Figure 3.2 A Contour Plot
Figure 3.3 Steam Enthalpy Plot
Figure 6.1 Use of yxplot
Figure 6.2 Use of yxploti and ginput
Figure 6.3 Use of meshgrid and mesh
Figure 6.4 Another View of a Three Dimension Object
Figure 8.1 Numerical Approximation to a Derivative

For additional information about the use of Matlab see: for pages from Indiana and for pages and links at Rice Return to CENG 303 home page