teaching with matlab - tips and tricks
DESCRIPTION
Teaching with MATLAB - Tips and Tricks . David Chen, PhD Principal Application Engineer [email protected]. Agenda. Challenges of Teaching Setup Visualization Interactive Coding Publishing (Handing In Assignments) Building Simple Models Motivating with Complex Models Conclusion. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/1.jpg)
© 2
010
The
Mat
hWor
ks, I
nc.
Teaching with MATLAB - Tips and Tricks
David Chen, PhDPrincipal Application [email protected]
![Page 2: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/2.jpg)
Agenda
Challenges of Teaching Setup Visualization Interactive Coding Publishing (Handing In Assignments) Building Simple Models Motivating with Complex Models Conclusion
![Page 3: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/3.jpg)
Challenges of Teaching
![Page 4: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/4.jpg)
What We Mean by “MATLAB for Teaching”
Educators use MATLAB® to Illustrate lectures Design homework problems Set up laboratory exercises
Cleve Moler – MATLAB® inventor
Students use MATLAB to Explore and understand principles Practice exercises, projects Acquire skills for the job market
![Page 5: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/5.jpg)
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
![Page 6: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/6.jpg)
Agenda
Challenges of Teaching Setup Visualization Interactive Coding Publishing (Handing In Assignments) Building Simple Models Motivating with Complex Models Conclusion
![Page 7: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/7.jpg)
Agenda
Challenges of Teaching Setup Visualization Interactive Coding Publishing (Handing In Assignments) Building Simple Models Motivating with Complex Models Conclusion
![Page 8: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/8.jpg)
Chalkboard Art
http://www.chemistryland.com/ChemEdArticle/PowerPoint.html
![Page 9: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/9.jpg)
Projector Art
http://fourier.eng.hmc.edu/e101/lectures/Bode/node8.html
![Page 10: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/10.jpg)
Interactive Visualization
![Page 11: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/11.jpg)
Interactive Visualization
![Page 12: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/12.jpg)
Agenda
Challenges of Teaching Setup Visualization Interactive Coding Publishing (Handing In Assignments) Building Simple Models Motivating with Complex Models Conclusion
![Page 13: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/13.jpg)
Modeling a Whal Call
Sum of harmonics of a fundamental frequency
Amplitude modulated: )()()( 0 tytAty
n
tnfty )π2sin()( 00
e
)2sin()( 0 tfeAtA mBt π
Decaying oscillation
![Page 14: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/14.jpg)
Agenda
Challenges of Teaching Setup Visualization Interactive Coding Publishing (Handing In Assignments) Building Simple Models Motivating with Complex Models Conclusion
![Page 15: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/15.jpg)
Agenda
Challenges of Teaching Setup Visualization Interactive Coding Publishing (Handing In Assignments) Building Simple Models Motivating with Complex Models Conclusion
![Page 16: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/16.jpg)
Mass – Spring – Damping System
![Page 17: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/17.jpg)
Introduction to Symbolic Math Toolbox
Sharing
From MATLAB: From notebook interface:
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
![Page 18: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/18.jpg)
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
![Page 19: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/19.jpg)
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
y
θ1
xz l
![Page 20: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/20.jpg)
Agenda
Challenges of Teaching Setup Visualization Interactive Coding Publishing (Handing In Assignments) Building Simple Models Motivating with Complex Models Conclusion
![Page 21: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/21.jpg)
21
Grid
Wind Turbine Model
Yaw
GeneratorSpeed
Tower
Geartrain GeneratorPrimary Goal
Spin at or near operating speed
OperatingPoint
Pitch
RotorSpeed
Blades
Hub
Lift, DragWind
Nacelle
![Page 22: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/22.jpg)
22
Key Tasks
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
Mechanical
Hydraulic
Electrical
Control
SupervisoryLogic
Aero-dynamics
ParkSpin
LiftDrag
Wind
Actuator(Ideal)Inputs System
(Include)
Actuator(Realistic)
System(Ignore)
![Page 23: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/23.jpg)
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)
![Page 24: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/24.jpg)
24
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 structure
of 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
V+
V-
MATLAB, Simulink
Sim
Pow
erSystem
sSimscape
Sim
Mechanics
Sim
Driveline
Sim
Hydraulics
Sim
Electronics
![Page 25: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/25.jpg)
Agenda
Challenges of Teaching Setup Visualization Interactive Coding Publishing (Handing In Assignments) Building Simple Models Motivating with Complex Models Conclusion
![Page 26: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/26.jpg)
Solving Some Challenges of Teaching
Visualization Interactivity Publishing Simulation
System Modeling Project-Based Learning
![Page 27: Teaching with MATLAB - Tips and Tricks](https://reader035.vdocuments.mx/reader035/viewer/2022062410/56816333550346895dd3b9b5/html5/thumbnails/27.jpg)
27
Q&A: Teaching with MATLAB - Tips and Tricks
David ChenThe MathWorks