410 likes | 476 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/getting-started-with-matlab-68985.html (6 min) • http://www.mathworks.com/videos/writing-a-matlab-program-69023.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) • See Also • Day1_HW_Build_Tutorial_1201.m
Consider an ARBITRARY Trapezoid HW00 P01 Trapezoid Area • The Area of this form is the AVERAGE OF THE BASE-LENGTHS times the HEIGHT • The ALGEBRAIC formula for the Area, A • a & b are BASE Lengths • h is the Height
HW00 P01 Trapezoid Area • Ask user to enter a, b, h • Calc & Display Trapezoid area
HW00 P03 Quadratic Eqn • Ask user to enter a, b, c for Quadratic Eqn shown below • DisplaySolution
HW00 P07 CoSine City • Find Difference in MATLAB CoSineCalcs
HW00 P11 Base Exposed • Plot This Function • Where • T Temperature (°C) • t time (minutes) • t0 = 3.3 minutes • For 1 t 9
HW00 P15 SimuLink City • Solve the ODE below using the Icon Based Programming Environment, SimuLink
HW00 P23 MuPAD Manipulation • For • Find UsingMuPAD
HW00 P31 Excel Exposure • Compare Industrial Machine Tool Products from Gladiator Engineered Systems (GES) and the Competition Thru the use of an Excel RADAR Chart
MATLAB provides a Very Nice Utility in which a Plot is sent to the MSWindows ClipBoard for Subsequent Pasting into Other Applications To Save to the ClipBoard Select Copy Options from the Edit menu. The Copying Options page of the Preferences dialog box appears. Complete the fields on the Copying Options page and click OK. Select Copy Figure from the Edit menu. Windows ClipBoard Copy
Copy to Clipboard Step-1 In Figure 1 Window Click Edit→Copy Options...
Copy to Clipboard Steps 2&3 In the Preferences Dialog Box check the Copy-Options Boxes as you see Fit Close the Dialog Box
Copy to Clipboard – Steps 4&5 In the Figure Window use File → Copy Figure to send the plot to the clipboard Paste the plot image into PowerPoint, Word, etc.
Copy SimuLink Model • A SimuLink Model
Copy MuPAD Symbolic Math • A MuPADWorkBook • Select Content
Copy MuPAD Symbolic Math • In MSWord use: • PASTE SPECIAL • FORMATED TEXT (RTF)
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
All Done for Today Please TryUsingMATLAB • Let’s do MQ-00b
A Trapezoid t h b • A = [Hgt] x [Avg-Width]
>> fplot('cosh', [-2 2]) >> grid Cosh City
3x3 from ENGR43 • For The DC Linear Circuits We Will need to Solve Systems Of Algebraic Equations
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