1 / 27

Teaching with MATLAB - Tips and Tricks

Teaching with MATLAB - Tips and Tricks . David Chen, PhD Principal Application Engineer David.chen@mathworks.cn. Agenda. Challenges of Teaching Setup Visualization Interactive Coding Publishing (Handing In Assignments) Building Simple Models Motivating with Complex Models Conclusion.

raheem
Download Presentation

Teaching with MATLAB - Tips and Tricks

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. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn

  2. Agenda • Challenges of Teaching • Setup • Visualization • Interactive Coding • Publishing (Handing In Assignments) • Building Simple Models • Motivating with Complex Models • Conclusion

  3. Challenges of Teaching

  4. Cleve Moler – MATLAB® inventor Students use MATLAB to • Explore and understand principles • Practice exercises, projects • Acquire skills for the job market What We Mean by “MATLAB for Teaching” Educators use MATLAB® to • Illustrate lectures • Design homework problems • Set up laboratory exercises

  5. Introduction to MATLAB The leading environment fortechnical computing • The de facto industry-standard,high-level programming language for algorithm development • Numeric computation • Data analysis and visualization • Toolboxes for control design, signal and image processing, statistics, optimization, symbolic math, and other areas

  6. Agenda • Challenges of Teaching • Setup • Visualization • Interactive Coding • Publishing (Handing In Assignments) • Building Simple Models • Motivating with Complex Models • Conclusion

  7. Agenda • Challenges of Teaching • Setup • Visualization • Interactive Coding • Publishing (Handing In Assignments) • Building Simple Models • Motivating with Complex Models • Conclusion

  8. Chalkboard Art http://www.chemistryland.com/ChemEdArticle/PowerPoint.html

  9. Projector Art http://fourier.eng.hmc.edu/e101/lectures/Bode/node8.html

  10. Interactive Visualization

  11. Interactive Visualization

  12. Agenda • Challenges of Teaching • Setup • Visualization • Interactive Coding • Publishing (Handing In Assignments) • Building Simple Models • Motivating with Complex Models • Conclusion

  13. e Modeling a Whal Call Amplitude modulated: Sum of harmonics of a fundamental frequency Decaying oscillation

  14. Agenda • Challenges of Teaching • Setup • Visualization • Interactive Coding • Publishing (Handing In Assignments) • Building Simple Models • Motivating with Complex Models • Conclusion

  15. Agenda • Challenges of Teaching • Setup • Visualization • Interactive Coding • Publishing (Handing In Assignments) • Building Simple Models • Motivating with Complex Models • Conclusion

  16. Mass – Spring – Damping System

  17. Introduction to Symbolic Math Toolbox Sharing From notebook interface: From MATLAB: • Perform symbolic computations using familiar MATLAB syntax • Conveniently manage & document symbolic computations • Math notation, embedded text & graphics • Access complete MuPAD language • 15+ libraries of symbolic math functions

  18. Introduction to Simulink The leading environment for modeling,simulating, and implementing dynamicand embedded systems • Foundation for Model-Based Design, including physical-domain modeling,automatic code generation, andverification and validation • Open architecture for integrating modelsfrom other tools • Applications in controls, signal processing,communications, and other systemengineering areas

  19. y x z l θ 1 Introduction to SimMechanics • Extension of Simscape for acausal modeling of three-dimensional mechanical systems • Eases process of modeling mechanical systems • Does not require deriving and programming the equations of motion for the system • Used by mechanical engineers, system engineers, and control engineers to develop plant models and test control systems

  20. Agenda • Challenges of Teaching • Setup • Visualization • Interactive Coding • Publishing (Handing In Assignments) • Building Simple Models • Motivating with Complex Models • Conclusion

  21. Wind Turbine Model OperatingPoint Pitch Wind Lift, Drag Blades Nacelle Generator Geartrain Hub Primary Goal Spin at or near operating speed RotorSpeed GeneratorSpeed Yaw Grid Tower

  22. Key Tasks Control SupervisoryLogicAero-dynamics Mechanical HydraulicElectrical • Modeling the entire system at the system level enables students to produce optimized designs • The ability to easily adjustthe level of model fidelityenables efficient development • Automatically documentingtests can speed up designiterations and provide necessaryproof of system performance Drag Lift Park Actuator(Ideal) System (Include) Inputs Spin Wind Actuator(Realistic) System (Ignore)

  23. Key Tools • Pitch Actuation and Control • Blades and pitch linkage (SimMechanics) • Pitch actuation and control (SimHydraulics, Simscape) • Yaw Actuation and Control • Yaw actuation (SimDriveline, SimElectronics) • Power Generation • Generator (SimPowerSystems) • Wind Loads (Embedded MATLAB) • Supervisory Control (Stateflow) • Code Generation (Real Time Workshop) • Documenting Results(Simulink Report Generator)

  24. SimPowerSystems SimMechanics SimDriveline SimHydraulics SimElectronics Simscape MATLAB, Simulink V+ V- Introduction to Simscape • Extension of Simulink designed for acausal modeling of multi-domain physical systems • Eases process of modeling physical systems • Build models that reflect structureof physical system • Leverage MATLAB to create reusable models • Used by system engineers and control engineers to build a model representing the physical structure of the system

  25. Agenda • Challenges of Teaching • Setup • Visualization • Interactive Coding • Publishing (Handing In Assignments) • Building Simple Models • Motivating with Complex Models • Conclusion

  26. Solving Some Challenges of Teaching • Visualization • Interactivity • Publishing • Simulation • System Modeling • Project-Based Learning

  27. Q&A: Teaching with MATLAB - Tips and Tricks David Chen The MathWorks

More Related