# MATLAB / Edition 1

Need to Learn MATLAB? Problem SOLVED!

Get started using MATLAB right away with help from this hands-on guide. MATLAB Demystified offers an effective and enlightening method for learning how to get the most out this powerful computational mathematics tool.

Using an easy-to-follow format, this book explains the basics of MATLAB up front. You'll find out how

See more details below

## Overview

Need to Learn MATLAB? Problem SOLVED!

Get started using MATLAB right away with help from this hands-on guide. MATLAB Demystified offers an effective and enlightening method for learning how to get the most out this powerful computational mathematics tool.

Using an easy-to-follow format, this book explains the basics of MATLAB up front. You'll find out how to plot functions, solve algebraic equations, and compute integrals. You'll also learn how to solve differential equations, generate numerical solutions of ODEs, and work with special functions. Packed with hundreds of sample equations and explained solutions, and featuring end-of-chapter quizzes and a final exam, this book will teach you MATLAB essentials in no time at all.

• This self-teaching guide offers:
• The quickest way to get up and running on MATLAB
• Hundreds of worked examples with solutions
• Coverage of MATLAB 7
• A quiz at the end of each chapter to reinforce learning and pinpoint weaknesses
• A final exam at the end of the book
• A time-saving approach to performing better on homework or on the job

Simple enough for a beginner, but challenging enough for an advanced user, MATLAB Demystified is your shortcut to computational precision.

## Product Details

ISBN-13:
9780071485517
Publisher:
McGraw-Hill Professional Publishing
Publication date:
04/06/2007
Series:
Demystified Series
Pages:
336
Sales rank:
1,310,187
Product dimensions:
7.30(w) x 9.10(h) x 0.70(d)

## Related Subjects

Preface     ix
Acknowledgments     x
The MATLAB Environment     1
Overview of the User Interface     2
Command Window and Basic Arithmetic     3
The Assignment Operator     5
Basic Mathematical Definitions     9
Complex Numbers     11
Fixing Typos     12
Some File Basics     12
Quiz     14
Vectors and Matrices     15
Vectors     15
Creating Larger Vectors from Existing Variables     18
Creating Vectors with Uniformly Spaced Elements     18
Characterizing a Vector     20
Vector Dot and Cross Products     24
Referencing Vector Components     25
Basic Operations with Matrices     26
Matrix Multiplication     29
More Basic Operations     30
Special Matrix Types     31
Referencing Matrix Elements     32
Finding Determinants and Solving Linear Systems     34
Finding the Rank of a Matrix     35
Finding the Inverse of a Matrix and the Pseudoinverse     39
Reduced Echelon Matrices     44
MatrixDecompositions     45
Quiz     47
Plotting and Graphics     49
Basic 2D Plotting     49
More 2D Plotting Options     54
The Axis Commands     57
Showing Multiple Functions on One Plot     58
Setting Colors     62
Setting Axis Scales     64
Subplots     67
Overlaying Plots and linspace     71
Polar and Logarithmic Plots     74
Plotting Discrete Data     79
Contour Plots     85
Three Dimensional Plots     90
Quiz     96
Statistics and an Introduction to Programming in MATLAB     97
Generating Histograms     98
Basic Statistics     103
Writing Functions in MATLAB     106
Programming with For Loops     110
Calculating Standard Deviation and Median     110
More MATLAB Programming Tips     116
Quiz     119
Solving Algebraic Equations and Other Symbolic Tools     121
Solving Basic Algebraic Equations     121
Plotting Symbolic Equations     125
Solving Higher Order Equations     130
Systems of Equations     134
Expanding and Collecting Equations     135
Solving with Exponential and Log Functions     138
Series Representations of Functions     142
Quiz     144
Basic Symbolic Calculus and Differential Equations     145
Calculating Limits     145
Computing Derivatives     153
The dsolve Command     161
Solving ODE's     161
Systems of Equations and Phase Plane Plots     169
Quiz     178
Numerical Solution of ODEs     179
Solving First Order Equations with ODE23 and ODE45     179
Solving Second Order Equations     188
Quiz     196
Integration     197
The Int Command     197
Definite Integration     201
Multidimensional Integration     208
Numerical Integration     209
Quiz     217
Transforms     219
The Laplace Transform     219
The Inverse Laplace Transform     222
Solving Differential Equations     227
Computing Fourier Transforms      232
Inverse Fourier Transforms     235
Fast Fourier Transforms     236
Quiz     239
Curve Fitting     241
Fitting to a Linear Function     241
Fitting to an Exponential Function     257
Quiz     258
Working with Special Functions     259
Gamma Functions     259
Bessel Functions     266
The Beta Function     274
Special Integrals     276
Legendre Functions     281
Airy Functions     284
Quiz     286
Bibliography and References     289
Final Exam     291
Answers to Quiz and Exam Questions     303
Index     319