Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Matlab Programming

Matlab Programming

Ratings: (0)|Views: 37|Likes:
Published by api-3696482

More info:

Published by: api-3696482 on Oct 14, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Contents
1 Engineering Problem Solving
1

1.1 Problem-SolvingProcess. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Problem Solving Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.3 ComputingSoftware. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.4 ComputingTerminology. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

2Matlab Technical Computing Environment
14

2.1 Workspace, Windows, and Help. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2 ScalarMathematics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3 Basic Mathematical Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 2.4 ComputationalLimitations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.5 DisplayOptions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 2.6 Accuracy and Precision. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

3 Files and File Management
37

3.1 File Management De\ufb01nitions and Commands. . . . . . . . . . . . . . . . . . . . . . 37 3.2 Saving and Restoring Matlab Information. . . . . . . . . . . . . . . . . . . . . . . . 39 3.3 ScriptM-Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 3.4 Errors and Debugging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 3.5 Matlab Search Path, Path Management, and Startup. . . . . . . . . . . . . . . . . . 49

i
4 Trigonometry and Complex Numbers
51

4.1 Trigonometry. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 4.2 ComplexNumbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 4.3 Two-DimensionalPlotting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72

5 Arrays and Array Operations
81

5.1 VectorArrays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 5.2 MatrixArrays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 5.3 Array Plotting Capabilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

6 Mathematical Functions and Applications
101

6.1 Signal Representation, Processing, and Plotting. . . . . . . . . . . . . . . . . . . . . 101 6.2 Polynomials. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 6.3 Partial Fraction Expansion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 6.4 Functions of Two Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 6.5 User-De\ufb01nedFunctions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 6.6 PlottingFunctions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

7 Data Analysis
135

7.1 Maximum and Minimum. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 7.2 Sums and Products. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 7.3 StatisticalAnalysis. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 7.4 Random Number Generation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148

8 Selection Programming
155

8.1 Relational and Logical Operators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 8.2 FlowControl. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 8.3 Loops. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 8.4 Selection Statements in User-De\ufb01ned Functions. . . . . . . . . . . . . . . . . . . . . 169 8.5 UpdateProcesses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171

ii
8.6 Applied Problem Solving: Speech Signal Analysis. . . . . . . . . . . . . . . . . . . . 175
9 Vectors, Matrices and Linear Algebra
180

9.1 Vectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 9.2 Matrices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 9.3 Solutions to Systems of Linear Equations. . . . . . . . . . . . . . . . . . . . . . . . 196 9.4 Applied Problem Solving: Robot Motion. . . . . . . . . . . . . . . . . . . . . . . . . 202

10 Curve Fitting and Interpolation
207

10.1 Minimum Mean-Square Error Curve Fitting. . . . . . . . . . . . . . . . . . . . . . . 207 10.2 Applied Problem Solving: Hydraulic Engineering. . . . . . . . . . . . . . . . . . . . 213 10.3 Interpolation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215 10.4 Applied Problem Solving: Human Hearing. . . . . . . . . . . . . . . . . . . . . . . . 219

11 Integration and Di\ufb00erentiation
223
11.1 Numerical Integration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
11.2 Numerical Di\ufb00erentiation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
12 Strings, Time, Base Conversion and Bit Operations
239

12.1 Character Strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 12.2 Time Computations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 12.3 Base Conversions and Bit Operations. . . . . . . . . . . . . . . . . . . . . . . . . . . 247

13 Symbolic Processing
250

13.1 Symbolic Expressions and Algebra. . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 13.2 Manipulating Trigonometric Expressions. . . . . . . . . . . . . . . . . . . . . . . . . 257 13.3 Evaluating and Plotting Symbolic Expressions. . . . . . . . . . . . . . . . . . . . . 258 13.4 Solving Algebraic and Transcendental Equations. . . . . . . . . . . . . . . . . . . . 259 13.5 Calculus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262 13.6 Linear Algebra. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266

iii

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->