Teaching with MATLAB - Tips and Tricks

  • Published on
    23-Feb-2016

  • View
    28

  • Download
    0

DESCRIPTION

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. - PowerPoint PPT Presentation

Transcript

PowerPoint ResourcesTeaching with MATLAB - Tips and Tricks David Chen, PhDPrincipal Application EngineerDavid.chen@mathworks.cn 2010 The MathWorks, Inc.The MathWorks1Challenges of TeachingAttention, learning styles, assessment, material to coverThe MathWorks3What We Mean by MATLAB for TeachingEducators use MATLAB toIllustrate lecturesDesign homework problemsSet up laboratory exercisesCleve Moler MATLAB inventorStudents use MATLAB toExplore and understand principlesPractice exercises, projectsAcquire skills for the job marketThe MathWorks4Introduction to MATLABThe leading environment fortechnical computingThe de facto industry-standard,high-level programming language for algorithm development Numeric computationData analysis and visualizationToolboxes for control design, signal and image processing, statistics, optimization, symbolic math, and other areasThe MathWorks5MATLAB, 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. Thats 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 areasOptional elaboration:When people describe MATLAB, they generally talk about it as one of two things* An interactive, exploratory analysis and visualization environment* A programming environmentIn fact, its 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 youre 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.AgendaChallenges of TeachingSetupVisualizationInteractive CodingPublishing (Handing In Assignments)Building Simple ModelsMotivating with Complex ModelsConclusionThe MathWorks6AgendaChallenges of TeachingSetupVisualizationInteractive CodingPublishing (Handing In Assignments)Building Simple ModelsMotivating with Complex ModelsConclusionThe MathWorks7Chalkboard Arthttp://www.chemistryland.com/ChemEdArticle/PowerPoint.htmlProjector Arthttp://fourier.eng.hmc.edu/e101/lectures/Bode/node8.htmlInteractive VisualizationInteractive VisualizationAgendaChallenges of TeachingSetupVisualizationInteractive CodingPublishing (Handing In Assignments)Building Simple ModelsMotivating with Complex ModelsConclusionThe MathWorks12Modeling a Whal CallSum of harmonics of a fundamental frequencyAmplitude modulated:eDecaying oscillationAgendaChallenges of TeachingSetupVisualizationInteractive CodingPublishing (Handing In Assignments)Building Simple ModelsMotivating with Complex ModelsConclusionThe MathWorks14AgendaChallenges of TeachingSetupVisualizationInteractive CodingPublishing (Handing In Assignments)Building Simple ModelsMotivating with Complex ModelsConclusionThe MathWorks15Mass Spring Damping SystemIntroduction to Symbolic Math Toolbox SharingFrom MATLAB: From notebook interface:Perform symbolic computations using familiar MATLAB syntaxConveniently manage & document symbolic computationsMath notation, embedded text & graphics Access complete MuPAD language 15+ libraries of symbolic math functions17The MathWorks17 Now that weve talked about what symbolic computing is and how it can be used in Finance, Ill give a quick overview of the toolbox Ill 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 Ill show it in more detail shortly in the demonstration [[click]] Final thing Id like to mention about NB, and something thats really important, is that its 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 arent 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 domainsIntroduction to SimulinkThe leading environment for modeling,simulating, and implementing dynamicand embedded systemsFoundation for Model-Based Design, including physical-domain modeling,automatic code generation, andverification and validationOpen architecture for integrating modelsfrom other toolsApplications in controls, signal processing,communications, and other systemengineering areasThe MathWorks18MATLAB, 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. Thats 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 areasOptional elaboration:When people describe MATLAB, they generally talk about it as one of two things* An interactive, exploratory analysis and visualization environment* A programming environmentIn fact, its 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 youre 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.Introduction to SimMechanicsExtension of Simscape for acausal modeling of three-dimensional mechanical systemsEases process of modeling mechanical systemsDoes not require deriving and programming the equations of motion for the systemUsed by mechanical engineers, system engineers, and control engineers to develop plant models and test control systemsy1xzlAgendaChallenges of TeachingSetupVisualizationInteractive CodingPublishing (Handing In Assignments)Building Simple ModelsMotivating with Complex ModelsConclusionThe MathWorks20GridWind Turbine ModelYawGeneratorSpeedTowerGeartrainGeneratorPrimary GoalSpin at or near operating speedOperatingPointPitchRotorSpeedBladesHubLift, DragWindNacelle#Key TasksModeling the entire system at the system level enables students to produce optimized designsThe ability to easily adjustthe level of model fidelityenables efficient development Automatically documentingtests can speed up designiterations and provide necessaryproof of system performanceMechanicalHydraulicElectricalControlSupervisoryLogicAero-dynamicsParkSpinLiftDragWindActuator(Ideal)InputsSystem(Include)Actuator(Realistic)System(Ignore)#22Key TakeawaysSummarize the key points about this release. Key ToolsPitch Actuation and ControlBlades and pitch linkage (SimMechanics)Pitch actuation and control (SimHydraulics, Simscape)Yaw Actuation and ControlYaw actuation (SimDriveline, SimElectronics)Power GenerationGenerator (SimPowerSystems)Wind Loads (Embedded MATLAB)Supervisory Control (Stateflow)Code Generation (Real Time Workshop)Documenting Results (Simulink Report Generator)#Introduction to SimscapeExtension of Simulink designed for acausal modeling of multi-domain physical systemsEases process of modeling physical systemsBuild models that reflect structureof physical systemLeverage MATLAB to create reusable modelsUsed by system engineers and control engineers to build a model representing the physical structure of the systemV+V-MATLAB, SimulinkSimPowerSystemsSimscapeSimMechanicsSimDrivelineSimHydraulicsSimElectronics#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.AgendaChallenges of TeachingSetupVisualizationInteractive CodingPublishing (Handing In Assignments)Building Simple ModelsMotivating with Complex ModelsConclusionThe MathWorks25Solving Some Challenges of TeachingVisualizationInteractivityPublishingSimulationSystem ModelingProject-Based Learning27Q&A: Teaching with MATLAB - Tips and Tricks David ChenThe MathWorks

Recommended

View more >