| |
| |
Previous edition TOC | |
| |
| |
| |
An Introduction to Basic Matlab Skills | |
| |
| |
| |
About Matlab | |
| |
| |
| |
What is Matlab? | |
| |
| |
| |
Student Edition of Matlab | |
| |
| |
| |
How is Matlab used in Industry? | |
| |
| |
| |
Electrical Engineering | |
| |
| |
| |
Biomedical Engineering | |
| |
| |
| |
Fluid Dynamics | |
| |
| |
| |
Problem Solving in Engineering and Science | |
| |
| |
| |
Matlab Environment | |
| |
| |
| |
Getting Started | |
| |
| |
| |
Matlab Windows | |
| |
| |
| |
Command Window | |
| |
| |
| |
Command History | |
| |
| |
| |
Workspace Window | |
| |
| |
| |
Current Directory Window | |
| |
| |
| |
Document Window | |
| |
| |
| |
Graphics Window | |
| |
| |
| |
Edit Window | |
| |
| |
| |
Start Button | |
| |
| |
| |
Solving Problems with Matlab | |
| |
| |
| |
Using Variables | |
| |
| |
| |
Matrices in Matlab | |
| |
| |
| |
Scalar Operations | |
| |
| |
| |
Order of Operation | |
| |
| |
| |
Array Operations | |
| |
| |
| |
Number Display | |
| |
| |
| |
Scientific Notation | |
| |
| |
| |
Display Format | |
| |
| |
| |
Saving Your Work | |
| |
| |
| |
Saving Variables | |
| |
| |
| |
Script M-files | |
| |
| |
| |
Built-in Matlab Functions | |
| |
| |
| |
Using Built-in Functions | |
| |
| |
| |
Using the Help Feature | |
| |
| |
| |
Elementary Math Functions | |
| |
| |
| |
Common Computations | |
| |
| |
| |
Rounding Functions | |
| |
| |
| |
Discrete Mathematics | |
| |
| |
| |
Trigonometric Functions | |
| |
| |
| |
Data Analysis Functions | |
| |
| |
| |
Maximum and Minimum | |
| |
| |
| |
Mean and Median | |
| |
| |
| |
Sums and Products | |
| |
| |
| |
Sorting Values | |
| |
| |
| |
Determining Matrix Size | |
| |
| |
| |
Variance and Standard Deviation | |
| |
| |
| |
Random Numbers | |
| |
| |
| |
Uniform Random Numbers | |
| |
| |
| |
Gaussian Random Numbers | |
| |
| |
| |
Complex Numbers | |
| |
| |
| |
Computational Limits | |
| |
| |
| |
Special Values and Miscellaneous Functions | |
| |
| |
| |
Manipulating Matlab Matrices | |
| |
| |
| |
Manipulating Matrices | |
| |
| |
| |
Defining Matrices | |
| |
| |
| |
Using the Colon Operator | |
| |
| |
| |
Problems with Two Variables | |
| |
| |
| |
Special Matrices | |
| |
| |
| |
Matrix of Zeros | |
| |
| |
| |
Matrix of Ones | |
| |
| |
| |
Diagonal Matrices | |
| |
| |
| |
Magic Matrices | |
| |
| |
| |
Plotting | |
| |
| |
| |
Two Dimensional Plots | |
| |
| |
| |
Basic Plotting | |
| |
| |
| |
Line, Color and Mark Style | |
| |
| |
| |
Axis Scaling and Annotating Plots | |
| |
| |
| |
Subplots | |
| |
| |
| |
Other Types of Two Dimensional Plots | |
| |
| |
| |
Polar Plots | |
| |
| |
| |
Logarithmic plots | |
| |
| |
| |
Bar Graphs and Pie Charts | |
| |
| |
| |
Histograms | |
| |
| |
| |
X-Y Graphs with two Y Axes | |
| |
| |
| |
Function Plots | |
| |
| |
| |
Three Dimensional Plotting | |
| |
| |
| |
Three Dimensional Line Plot | |
| |
| |
| |
Surface Plots | |
| |
| |
| |
Editing Plots from the Menu Bar | |
| |
| |
| |
Creating Plots from the Workspace Window | |
| |
| |
| |
Saving Your Plots | |
| |
| |
| |
Programming in Matlab | |
| |
| |
| |
User-Defined Functions | |
| |
| |
| |
Creating Function M-files | |
| |
| |
| |
Syntax | |
| |
| |
| |
Comments | |
| |
| |
| |
Functions with Multiple Inputs and Outputs | |
| |
| |
| |
Functions with No input or no outputs | |
| |
| |
| |
Determining the number of input and output arguments | |
| |
| |
| |
Local Variables | |
| |
| |
| |
Global Variables | |
| |
| |
| |
Accessing M-file Code | |
| |
| |
| |
Creating Your Own Tool Box of Functions | |
| |
| |
| |
Anonymous Functions | |
| |
| |
| |
Function Functions | |
| |
| |
| |
User Controlled Input and Output | |
| |
| |
| |
User Defined Input | |
| |
| |
| |
Output Options | |
| |
| |
| |
Display function | |
| |
| |
| |
Formatted Output (fprintf) | |
| |
| |
| |
Graphical Input | |
| |
| |
| |
Using Cell Mode in Matlab M-files | |
| |
| |
| |
Reading and Writing Data From Files | |
| |
| |
| |
Logical Functions and Control Structures | |
| |
| |
| |
Relational and Logical Operators | |
| |
| |
| |
Flow Charts and Pseudo-Code | |
| |
| |
| |
Logical Functions | |
| |
| |
| |
Find | |
| |
| |
| |
Flow Charting and Pseudo Code for Find Commands | |
| |
| |
| |
Selection Structures | |
| |
| |
| |
The Simple if | |
| |
| |
| |
If/Else | |
| |
| |
| |
Elseif | |
| |
| |
| |
Switch and | |