1 / 40

Bruce Mayer, PE Licensed Electrical & Mechanical Engineer BMayer@ChabotCollege.edu

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

fritz
Télécharger la présentation

Bruce Mayer, PE Licensed Electrical & Mechanical Engineer BMayer@ChabotCollege.edu

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Engr/Math/Physics 25 Tutorial-1Intro VideosBuild HW File Bruce Mayer, PE Licensed Electrical & Mechanical EngineerBMayer@ChabotCollege.edu

  2. 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)

  3. 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

  4. HW File MSWord Starting Point

  5. 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

  6. HW00 P01 Trapezoid Area • Ask user to enter a, b, h • Calc & Display Trapezoid area

  7. HW00 P03  Quadratic Eqn • Ask user to enter a, b, c for Quadratic Eqn shown below • DisplaySolution

  8. HW00 P07  CoSine City • Find Difference in MATLAB CoSineCalcs

  9. HW00 P11  Base Exposed • Plot This Function • Where • T  Temperature (°C) • t  time (minutes) • t0  = 3.3 minutes • For 1  t  9

  10. HW00 P15  SimuLink City • Solve the ODE below using the Icon Based Programming Environment, SimuLink

  11. HW00 P23 MuPAD Manipulation • For • Find UsingMuPAD

  12. 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

  13. 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

  14. Copy to Clipboard  Step-1 In Figure 1 Window Click Edit→Copy Options...

  15. Copy to Clipboard  Steps 2&3 In the Preferences Dialog Box check the Copy-Options Boxes as you see Fit Close the Dialog Box

  16. 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.

  17. The Copy Figure export

  18. Copy SimuLink Model • A SimuLink Model

  19. The Copied Model

  20. Copy MuPAD Symbolic Math • A MuPADWorkBook • Select Content

  21. Copy MuPAD Symbolic Math • In MSWord use: • PASTE SPECIAL • FORMATED TEXT (RTF)

  22. Copied MuPADWorkBook

  23. 3x3 from ENGR43 • For The DC Linear Circuits We Will need to Solve Systems Of Algebraic Equations

  24. 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

  25. Additional Useful Videoshttp://www.mathworks.com/products/matlab/demos.html

  26. Day1 demo Script

  27. DeskTop Recoveryto UnScramble the DeskTop

  28. All Done for Today Please TryUsingMATLAB • Let’s do MQ-00b

  29. A Trapezoid t h b • A = [Hgt] x [Avg-Width]

  30. >> fplot('cosh', [-2 2]) >> grid Cosh City

  31. 3x3 from ENGR43 • For The DC Linear Circuits We Will need to Solve Systems Of Algebraic Equations

  32. Example Problem 1-21 • Plot This Function Time For Live Demo • Where • T  Temperature (°C) • t  time (minutes) • For: 1  t  3

  33. 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

  34. Engr/Math/Physics 25 Appendix Bruce Mayer, PE Licensed Electrical & Mechanical EngineerBMayer@ChabotCollege.edu

  35. 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

  36. 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

  37. Prob 1-22 Plot

  38. The Copied MuPADWorkBook

  39. System, Directory, File Cmnds

More Related