lecture 1: using matlab - mit opencourseware · lecture 1: using matlab • using matlab •...
TRANSCRIPT
![Page 1: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/1.jpg)
Lecture 1: Using Matlab
• Using Matlab • Setting Up for Matlab • Basic Calculations • The Matlab “Environment” • Matlab Functions • Matrix Math • Matrix Math • A Motivating Example • Examine the Lift Linkage • Model a System of Forces • Support Forces • Forces on the Bin • System of Equations • What Force for 10lbs Weight? • What about other Weights? • Call the m-file • Expand the m-file • The Matrix Determinant • Plotting Data in Matlab • Matlab plots data, not functions • A Motivating Example • Cool Time Data • Plotting Data • Why an Exponential Look? • Convective Cooling • Curve Fitting • Transform Data to a Linear Form • Plot the Ln Data • Find the Least Squares Fit • Plot both Data and Line • Formatting Plots • Plot the Exponential Equation
![Page 2: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/2.jpg)
Notes:
This the first day of matlab, and presumes you have sat through the “Introduction to Matlab” training session.
![Page 3: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/3.jpg)
Notes:
First you need to set up your athena (server) environment to be matlab-happy.
![Page 4: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/4.jpg)
Notes:
Matlab does basic calculations as you would expect.
![Page 5: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/5.jpg)
Notes:
In matlab, you can do all the UNIX commands.
There is an idea of the matlab workspace. As you define variables and formulas, they are stored, overwritten, expanded, deleted. But there is a state of the matlab environment at any point.
You may choose to leave matlab because of time pressure. You can store the state of matlab with a save command. Then quiot matlab, and leave. Later, after starting matlab, just enter load, and the file matlab.mat will be loaded, which restores the state of matlab to what it was when you did the save.
![Page 6: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/6.jpg)
Notes:
There are many matlab functions..
![Page 7: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/7.jpg)
![Page 8: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/8.jpg)
Notes:
lets try some matrix math.
![Page 9: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/9.jpg)
Notes:
Now lets see how we might use this.
![Page 10: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/10.jpg)
![Page 11: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/11.jpg)
![Page 12: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/12.jpg)
![Page 13: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/13.jpg)
![Page 14: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/14.jpg)
![Page 15: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/15.jpg)
![Page 16: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/16.jpg)
![Page 17: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/17.jpg)
![Page 18: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/18.jpg)
![Page 19: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/19.jpg)
![Page 20: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/20.jpg)
![Page 21: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/21.jpg)
![Page 22: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/22.jpg)
![Page 23: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/23.jpg)
![Page 24: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/24.jpg)
![Page 25: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/25.jpg)
![Page 26: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/26.jpg)
![Page 27: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/27.jpg)
![Page 28: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/28.jpg)
![Page 29: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/29.jpg)
![Page 30: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/30.jpg)
![Page 31: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/31.jpg)
![Page 32: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/32.jpg)
![Page 33: Lecture 1: Using Matlab - MIT OpenCourseWare · Lecture 1: Using Matlab • Using Matlab • Setting Up for Matlab ... This the first day of matlab, and presumes you have sat through](https://reader030.vdocument.in/reader030/viewer/2022040204/5ed33e0c0435ca6f1051e9e4/html5/thumbnails/33.jpg)