Presentation is loading. Please wait.

Presentation is loading. Please wait.

Teaching with MATLAB - Tips and Tricks

Similar presentations


Presentation on theme: "Teaching with MATLAB - Tips and Tricks"— Presentation transcript:

1 Teaching with MATLAB - Tips and Tricks
David Chen, PhD Principal Application Engineer The MathWorks

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

3 Challenges of Teaching
Attention, learning styles, assessment, material to cover The MathWorks

4 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 The MathWorks

5 Introduction to MATLAB
The leading environment for technical 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 MATLAB, our first core product, is the leading environment for technical computing. It is also the foundation of The MathWorks product family. People apply MATLAB to a broad range of applications, including signal processing, control system analysis, image processing, and just general data analysis. That’s one reason why MATLAB (is/can be) used so widely throughout (your organization/organizations like yours/your industry). MATLAB addresses this range of applications by offering a core set of technical computing capabilities. These include: * fast and robust numeric computation, with over 1000 algorithms geared to engineering and science * Engineering graphics and visualization tools * A high-level programming language that has become a de facto standard for developing and sharing algorithms * add-on toolboxes, providing additional functions for specific areas, such as signal and image processing, control system design, statistics, symbolic math, and other areas Optional elaboration: When people describe MATLAB, they generally talk about it as one of two things * An interactive, exploratory analysis and visualization environment * A programming environment In fact, it’s both. The math, graphics, and language can be applied in either way and these two modes can be mixed. You can use MATLAB as an exploratory environment, iteratively trying out math functions and plotting results until you’re satisfied with the resulting analysis. And you can use that same MATLAB language to develop functions and applications that you can reuse and share with others. The mode you use really depends on your style and your end goal. The benefit of this is that you can do your thinking and your programming in a single environment. The MathWorks

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

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

8 Chalkboard Art

9 Projector Art

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 The MathWorks

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 The MathWorks

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

16 Mass – Spring – Damping System

17 Introduction to Symbolic Math Toolbox
From MATLAB: From notebook interface: Sharing Now that we’ve talked about what symbolic computing is and how it can be used in Finance, I’ll give a quick overview of the toolbox I’ll introduce the toolbox by talking about the 2 fundamental ways you can interact with it First, the toolbox contains a broad set of MATLAB functions for performing symbolic computations directly from MATLAB, using familiar MATLAB syntax Prior to the recent major release of Sym Math Toolbox in 2008 – when we transitioned to the MuPAD symbolic engine – this was the only way to do symbolic calculations Back then, many customers requested an interactive notebook environment where they can do their computations [[click]] So we delivered on that, and as of 8b Symbolic Math Toolbox now offers NB interface for managing and documenting symbolic comps!! Answers displayed in real math notation, lets you embed text, tables, images, animations, and more Notebook provides access to the complete MuPAD language, which is optimized for symbolic math & includes built-in functionality in a broad range of mathematical areas Gotten lots of great feedback from customers using the notebook, and I’ll show it in more detail shortly in the demonstration Final thing I’d like to mention about NB, and something that’s really important, is that it’s integrated w/ ML, so you can easily share work you do in each environment. The reason this is so important is because financial modeling tasks typically aren’t purely symbolic or purely numeric – but rather a combination of the 2. So you need to be able to easily go back and forth from the symbolic and numeric domains 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 The MathWorks 17

18 Introduction to Simulink
The leading environment for modeling, simulating, and implementing dynamic and embedded systems Foundation for Model-Based Design, including physical-domain modeling, automatic code generation, and verification and validation Open architecture for integrating models from other tools Applications in controls, signal processing, communications, and other system engineering areas MATLAB, our first core product, is the leading environment for technical computing. It is also the foundation of The MathWorks product family. People apply MATLAB to a broad range of applications, including signal processing, control system analysis, image processing, and just general data analysis. That’s one reason why MATLAB (is/can be) used so widely throughout (your organization/organizations like yours/your industry). MATLAB addresses this range of applications by offering a core set of technical computing capabilities. These include: * fast and robust numeric computation, with over 1000 algorithms geared to engineering and science * Engineering graphics and visualization tools * A high-level programming language that has become a de facto standard for developing and sharing algorithms * add-on toolboxes, providing additional functions for specific areas, such as signal and image processing, control system design, statistics, symbolic math, and other areas Optional elaboration: When people describe MATLAB, they generally talk about it as one of two things * An interactive, exploratory analysis and visualization environment * A programming environment In fact, it’s both. The math, graphics, and language can be applied in either way and these two modes can be mixed. You can use MATLAB as an exploratory environment, iteratively trying out math functions and plotting results until you’re satisfied with the resulting analysis. And you can use that same MATLAB language to develop functions and applications that you can reuse and share with others. The mode you use really depends on your style and your end goal. The benefit of this is that you can do your thinking and your programming in a single environment. The MathWorks

19 Introduction to SimMechanics
y θ 1 x z l 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 The MathWorks

21 Spin at or near operating speed
Wind Turbine Model Operating Point Lift, Drag Pitch Wind Blades Nacelle Geartrain Generator Hub Primary Goal Spin at or near operating speed Rotor Speed Generator Speed Yaw Tower Grid

22 Supervisory Logic Aero- dynamics
Key Takeaways Summarize the key points about this release. Key Tasks Control Supervisory Logic Aero- dynamics Park Spin Lift Drag Wind Mechanical Hydraulic Electrical Modeling the entire system at the system level enables students to produce optimized designs The ability to easily adjust the level of model fidelity enables efficient development Automatically documenting tests can speed up design iterations and provide necessary proof of system performance Actuator (Ideal) Inputs System (Include) Actuator (Realistic) System (Ignore)

23 Key Tools Pitch Actuation and Control Yaw 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 Introduction to Simscape
MATLAB, Simulink SimPowerSystems Simscape SimMechanics SimDriveline SimHydraulics SimElectronics 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- Simscape extends Simulink® with tools for modeling and simulating multidomain physical systems, such as those with mechanical, hydraulic, and electrical components. Simscape can be used for a variety of automotive, aerospace, defense, and industrial-equipment applications. Together with SimMechanics, SimDriveline, SimHydraulics™, SimeElectronics, and SimPowerSystems (all available separately), Simscape lets you model complex interactions in multidomain physical systems.

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

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


Download ppt "Teaching with MATLAB - Tips and Tricks"

Similar presentations


Ads by Google