+ All Categories
Home > Documents > © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal...

© 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal...

Date post: 26-Dec-2015
Category:
Upload: hector-crawford
View: 217 times
Download: 2 times
Share this document with a friend
Popular Tags:
27
© 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer [email protected]
Transcript
Page 1: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

© 2

010

The

Mat

hWor

ks, I

nc.

Teaching with MATLAB - Tips and Tricks

David Chen, PhD

Principal Application Engineer

[email protected]

Page 2: © 2010 The MathWorks, Inc. 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

Page 3: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

Challenges of Teaching

Page 4: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

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

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: © 2010 The MathWorks, Inc. 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

Page 7: © 2010 The MathWorks, Inc. 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

Page 8: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

Chalkboard Art

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

Page 9: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

Projector Art

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

Page 10: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

Interactive Visualization

Page 11: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

Interactive Visualization

Page 12: © 2010 The MathWorks, Inc. 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

Page 13: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

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: © 2010 The MathWorks, Inc. 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

Page 15: © 2010 The MathWorks, Inc. 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

Page 16: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

Mass – Spring – Damping System

Page 17: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

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

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

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: © 2010 The MathWorks, Inc. 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

Page 21: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

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

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

Park

Spin

LiftDrag

Wind

Actuator(Ideal)

InputsSystem

(Include)

Actuator(Realistic)

System(Ignore)

Page 23: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

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

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

erS

yste

ms

Simscape

Sim

Mec

han

ics

Sim

Driv

elin

e

Sim

Hyd

raul

ics

Sim

Ele

ctro

nics

Page 25: © 2010 The MathWorks, Inc. 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

Page 26: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

Solving Some Challenges of Teaching

Visualization Interactivity Publishing Simulation

System Modeling Project-Based Learning

Page 27: © 2010 The MathWorks, Inc. Teaching with MATLAB - Tips and Tricks David Chen, PhD Principal Application Engineer David.chen@mathworks.cn.

27

Q&A: Teaching with MATLAB - Tips and Tricks

David ChenThe MathWorks


Recommended