Ch01 AboutMATLAB 3rd Ed
Ch01 AboutMATLAB 3rd Ed
-4.5
Rate of Change
About MATLAB®
Rate of temperature change, degrees/hour
-4
-3.5
Chapter 1
-3
-2.5
-2
-1.5
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
100
200
300
400
500
100 200 300 400 500
MATLAB for Engineers 3E, by Holly Moore. © 2011 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved.
This material is protected by Copyright and written permission should be obtained from the publisher prior to any prohibited
reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying,
recording, or likewise. For information regarding permission(s), write to: Rights and Permissions Department, Pearson Education,
Inc., Upper Saddle River, NJ 07458.
-5
-4.5
Rate of Change Objectives
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1
-0.5
able to:
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
200
300
500
100 200 300 400 500
-4.5
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
commercially available,
sophisticated mathematical
computation tools
• Others include
100
200
300
400
500
• Maple
100 200 300 400 500
• Mathematica
• MathCad
-4.5
Rate of Change MATLAB excels at:
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
• Numerical calculations
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
200
• MATLAB stands for
Matrix Laboratory
300
400
500
100 200 300 400 500
-4.5
Rate of Change Why MATLAB
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
• Easy to use
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
• Versatile
• Built in programming language
• Not a general purpose language
100
200
400
500
100 200 300 400 500
-4.5
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2
-1.5
-1
-0.5
rewritten in C
100
200
300
400
500
100 200 300 400 500
-4.5
Rate of Change MATLAB 7
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
200
different
300
400
500
100 200 300 400 500
-4.5
Rate of Change Release Numbers
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
200
• MATLAB 7.12
300
400
• Simulink 7.7
• A number of specialized “toolboxes”
500
100 200 300 400 500
-4.5
Rate of Change
Releases
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
100
200
300
400
500
100 200 300 400 500
-4.5
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
professional edition
• Student editions are available for
• Windows Operating Systems
100
200
• Mac OS
300
400 • Linux
500
-4.5
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
• Simulink 7.7
• Symbolic toolbox based on MuPad
• Limited number of other commonly
100
200
used toolboxes
300
400
500
100 200 300 400 500
-4.5
Rate of Change
biggest difference you’ll
notice
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
200
300
500
100 200 300 400 500
-4.5
Rate of Change How is MATLAB used in
Industry?
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
200
• Tool of choice in Academia for
300
400
most engineering fields
• Some examples….
500
100 200 300 400 500
-4.5
Rate of Change Electrical Engineering
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
100
200
300
-4.5
Rate of Change Biomedical Engineering
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
100
200
300
400
500
100 200 300 400 500
These images were created from MRI scan data using MATLAB.
The actual data set is included with the standard MATLAB
installation, allowing you experiment with manipulating the data
yourself.
-4.5
Rate of Change Fluid Dynamics
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
100
200
300
400
500
100 200 300 400 500
-4.5
Rate of Change
Problem Solving in
Engineering and Science
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
200
300
3. Develop an algorithm
4. Solve the problem
400
500
100 200 300 400 500
-4.5
Rate of Change State the Problem
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
300
400
500
100 200 300 400 500
understand the system better
-4.5
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
• Identify constants
• Label your sketch
• Group information into tables
100
200
300
400
500
100 200 300 400 500
-4.5
Rate of Change Develop an Algorithm
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
200
of the problem by hand or with a
300
400
calculator
500
100 200 300 400 500
-4.5
Rate of Change Solve the problem
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
200
300
400
500
100 200 300 400 500
-4.5
Rate of Change Test the Solution
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
300
asked for?
• Graphs are often useful ways to
400
500
100 200 300 400 500
-4.5
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
200
300
400
Here’s an example….
500
100 200 300 400 500
-4.5
Rate of Change Example 1.1
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
• Albert Einstein
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
• E=mc2
• The sun is fueled by
the conversion of
100 matter to energy
• How much matter
200
300
400
500
does the sun
consume every
100 200 300 400 500
day?
-4.5
Rate of Change State the Problem
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
300
400
500
100 200 300 400 500
-4.5
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
• Input
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
300
• Output
400
500
100 200 300 400 500
• Mass in kilograms
-4.5
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
J sec hours
385 10 360024
24 * 1day 3.33 10 31 J
sec hour day
200
300
400
500
• m=E/c2
3.33 10 31 J
100 200 300 400 500
J
m 3.7 10 14
-4.5
Rate of Change But the units are wrong!!
Rate of temperature change, degrees/hour
-4
-3.5
-3
J
-2.5
-2
3.7 10
-1.5
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
14
time, hour
2 2
m / sec
100
200
1 J = 1 kg m2/sec2
300
400
2 2
kg m / sec
500
100 200 300 400 500
3.7 10 2 2
3.7 10 kg
14 14
m / sec
MATLAB for Engineers 3E, by Holly Moore.
© 2011 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved.
This material is protected by Copyright and written permission should be obtained from the publisher prior to any prohibited reproduction, storage
in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information
regarding permission(s), write to:
Rights and Permissions Department, Pearson Education, Inc., Upper Saddle River, NJ 07458.
Develop a MATLAB Solution
to Solve the Problem
Rate of Change
-5
-4.5
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
300
500
100 200 300 400 500
window
-4.5
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
Enter theyou
Notice
Now
Once
NowOnce value
that
enter
enterhit for the
the
the
the E
value
enter
Enter theagain,
value for c,
at key,
the command
ofequation
Ethe
is updated
equation
result to
program
isto calculate
change
repeated
the speed of light
prompt
based
the
repeats
the on
mass
your
energy
back your
to you input.
rateinfrom
the
calculation
Notice
kJ/day the
commandto use
kJ/s. of
window
scientific notation in the
100
result
200
300
400
500
100 200 300 400 500
-4.5
Rate of Change Test your Solution
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
• Is it reasonable?
• Consider…
• Mass of the sun = 2*1020 kg
100
200
400
-4.5
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-1
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
2 10 30 kg year
time * 1 . 5 10 13
years
3.7 10 kg / day 365days
14
100
200
300
400
That’s 15 trillion years!!
Yes – this is a reasonable
500
100 200 300 400 500
result
-4.5
Rate of Change Summary
Rate of temperature change, degrees/hour
-4
-3.5
-3
-2.5
-2
-1.5
-0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time, hour
200
strategy makes it more likely
300
400
you’ve found the right answer
500
100 200 300 400 500