210 likes | 263 Views
Engr/Math/Physics 25. Tutorial-1 Intro Videos Build HW File. Bruce Mayer, PE Licensed Electrical & Mechanical Engineer BMayer@ChabotCollege.edu. First ENGR25 Tutorial. MATLAB Video Tutorials http://www.mathworks.com/academia/student_center/tutorials/launchpad.html
E N D
Engr/Math/Physics 25 Tutorial-1Intro VideosBuild HW File Bruce Mayer, PE Licensed Electrical & Mechanical EngineerBMayer@ChabotCollege.edu
First ENGR25 Tutorial • MATLAB Video Tutorials • http://www.mathworks.com/academia/student_center/tutorials/launchpad.html • http://www.mathworks.com/videos/matlab/getting-started-with-matlab.html (6 min) • http://www.mathworks.com/videos/matlab/writing-a-matlab-program.html (6 min) • http://www.mathworks.com/videos/matlab/using-basic-plotting-functions.html (6 min) • http://www.mathworks.com/videos/simulink/getting-started-with-simulink.html (3.5 min min)
First ENGR25 Tutorial • MATLAB Video Tutorials • http://www.mathworks.com/academia/student_center/tutorials/launchpad.html • http://www.mathworks.com/videos/matlab/creating-a-basic-plot-interactively.html (6 min)
Example Problem 1-21 • Plot This Function Time For Live Demo • Where • T Temperature (°C) • t time (minutes) • For: 1 t 3
3x3 from ENGR43 • For The DC Linear Circuits We Will need to Solve Systems Of Algebraic Equations
First ENGR25 Tutorial • Additional Videos Useful in the future • http://www.mathworks.com/videos/matlab/importing-data-from-files.html (HW5, 7min) • http://www.mathworks.com/products/simulink/demos.html?BB=1 (SimuLink) • http://www.mathworks.com/videos/simulink/getting-started-with-simulink.html (4 min) • http://www.mathworks.com/videos/simulink/visualizing-simulation-results.html (4 min) • HW Presentation Save MATLAB work to MSWord file • Trapezoid area, 3x3 Eqn System, cosh calculation, plot y = ln(t+.02)·sin(1.3t) Demonstrate Next Time
Additional Useful Videoshttp://www.mathworks.com/products/matlab/demos.html
3x3 from ENGR43 • For The DC Linear Circuits We Will need to Solve Systems Of Algebraic Equations
All Done for Today Please TryUsingMATLABin 3906A • Let’s do MQ-00b
Let’s do MQ-00b • Let’s do MQ-00b
Example Problem 1-21 • Plot This Function Time For Live Demo • Where • T Temperature (°C) • t time (minutes) • For: 1 t 3
Prob 1-21 >> t = [1:.01:3]; >> T = 6*log(t) - 7*exp(0.2*t); >> plot(t,T, 'LineWidth', 3) >> xlabel('t (Sec)') >> ylabel('T (deg C)') >> title('Temp vs time') >> grid
Engr/Math/Physics 25 Appendix Bruce Mayer, PE Licensed Electrical & Mechanical EngineerBMayer@ChabotCollege.edu
Example Demo Session >> %Use MATLAB As Calculator >> 17*19 ans = 323 >> 77/19 -4.3 ans = -0.2474 >> 64^(1/3) + 32^0.2 ans = 6 >> (7+11)*2.5 ans = 45 >> L = 14.4 L = 14.4000 >> W = 13.3 W = 13.3000 >> Area = L*W Area = 191.5200
Prob 1-21 Command Script • From the Command Window >> t = [1:0.02:3]; >> T = 6*log(t) - 7*exp(0.2*t); >> plot(t,T), xlabel('time (min)'),ylabel('Temperature (°C)'), title('Problem 1-21'), grid