27
© 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer [email protected]

Teaching with MATLAB - Tips and Tricks

  • Upload
    raheem

  • View
    42

  • Download
    1

Embed Size (px)

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 Presentation

Citation preview

Page 1: Teaching with MATLAB - Tips and Tricks

© 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

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

Challenges of Teaching

Page 4: Teaching with MATLAB - Tips and Tricks

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

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

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

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

Chalkboard Art

http://www.chemistryland.com/ChemEdArticle/PowerPoint.html

Page 9: Teaching with MATLAB - Tips and Tricks

Projector Art

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

Page 10: Teaching with MATLAB - Tips and Tricks

Interactive Visualization

Page 11: Teaching with MATLAB - Tips and Tricks

Interactive Visualization

Page 12: Teaching with MATLAB - Tips and Tricks

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

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

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

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

Mass – Spring – Damping System

Page 17: Teaching with MATLAB - Tips and Tricks

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

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

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

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

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

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

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

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

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

Solving Some Challenges of Teaching

Visualization Interactivity Publishing Simulation

System Modeling Project-Based Learning

Page 27: Teaching with MATLAB - Tips and Tricks

27

Q&A: Teaching with MATLAB - Tips and Tricks

David ChenThe MathWorks