Professional Documents
Culture Documents
Dhirendra Singh
Application Engineer, MathWorks
dsingh@mathworks.com
2
Agenda Day 2
Day 2
Mechanical engineering and Control System Concepts Using MATLAB
and Simulink.
10:00 am -11:00 pm
Mechanical engineering concepts using Simscape (Physical Modeling)
Multi-Body Dynamics Simulation using SimMechanics
11:00 am - 11:30 am Tea Break
Import CAD Models using GetMechanics App
11:30 am - 01:00 pm Implement Control on Low cost hardware - Arduino
Demo of Magnetic Levitation System
1:00 pm - 2:00 pm Lunch Break
3
Key Industries
4
The Right Language for the Task
5
Supporting Innovation
MATLAB Central
Open exchange for the
MATLAB and Simulink user community
800,000 visits per month
50% increase over previous year
File Exchange
Free file upload/download, including
MATLAB code, Simulink models, and
documents
File ratings and comments
Over 9,000 contributed files, 400 submissions
per month, 25,500 downloads per day
Newsgroup and Web Forum
Technical discussions about
MATLAB and Simulink
200 posts per day
Blogs
Read posts from key MathWorks developers
who design and build the products
Based on Feb-March 2009 data 6
Classroom Resources at mathworks.in
7
Teacher Activities
Before a course
Define learning objectives
Find or write material
Decide about teaching forms
Decide about examination
During a course
Lectures
Practical sessions
Question hours
Communication with students
8
Calculus -
9
Teaching Calculus A Symbolic Approach
Problem I:
Find Horizontal Asymptotes and
Absolute Maxima and Minima for below
function
5x 2 8 x 3
F ( x)
3x 2 2
10
Where is Symbolic Computing Used in Academia?
Mathematics departments
Foundation courses: Calculus, Differential equations, Linear
algebra,
Advanced courses: Number theory, Advanced algebra,
Engineering departments
Mechanical: System dynamics, Heat transfer, Fluid dynamics,
Electrical: Circuit analysis, Signals and systems,
Civil: Solid mechanics, Structural analysis,
11
Symbolic Math Toolbox Libraries
Calculus
Differentiation
Linear Algebra
Operations
Integrals (definite, indefinite) Eigenvalues
Jacobian
Taylor series
Limits Special Functions
Bernoulli, Bessel, Beta,
Solving Equations Fresnel sine/cosine integral,
Algebraic Equations Gamma
Ordinary Differential Equations
Variable Precision Arithmetic
Integral and Z-
Transforms Plotting
Fourier transform 2-D
Laplace transform 3-D contour, surface, mesh
Movies
Z-transforms
Simplification
Expansion of polynomials
Substitution
12
Symbolic Math Toolbox Use in Curriculum
Exploring Mathematics with MuPad Course
Course developed by
Dr. Catherine Wilkins
(University of Oxford)
56 page reference
document on getting
started with MuPAD
notebook interface
13
Teaching Math An Interactive Approach
Problem II:
You have been launched as a human
cannonball from ground level at an initial
velocity (v_i) of 50 m/s at an angle
theta.
How high do you go before falling
back down?
How long where you in the air?
v 2y sin(2 )
Position _ Y
g
14
Experimenting with Live Signals
MATLAB
Interfaces for communicating
with everything
16
Learning Beyond Classroom
>> rlcdemo
17
Deploying Applications with MATLAB
3
Toolboxes
1 MATLAB End-User
Desktop Machine
MATLAB
Compiler
2
.exe
18
Deploying Applications with MATLAB
executable and
shared libraries
Use Compiler add-ons to
create software .exe
.dll
Java
components .lib
19
Agenda Day 1
Day 1
09:00 am - 09:30 am Registration
09:30 am - 09:45 am Welcome Address
MATLAB and Simulink in Engineering Education
MATLAB Basics for the Budding Engineer
Experimentation and Modeling in MATLAB
09:45 am -11:00 am
Design and Implementation
Project-Based Learning (Arduino, RaspberryPi)
Machine Learning & Data Analytics
11:00 am - 11:30 am Tea Break
Accessing, exploring, analyzing, and visualizing data in MATLAB
Using the Classification Learner app and functions in the Statistics and Machine Learning Toolbox to perform
11:30 am - 12:30 pm
Common machine learning tasks such as Feature selection and feature transformation
Demo: ADAS using live camera stream
12:30 pm - 2:30 pm Lunch Break
Electrical engineering concepts Using MATLAB and Simulink
System Identification & Neural Network Based System Modeling Techniques
Electrical engineering using Simscape (Physical Modeling)
Electrical engineering using SimPowersystems
Control system design and analysis
What is IoT?
02:30 pm - 04:30 pm
Market Drivers and Challenges
Introduction to ThingSpeak
Examples
Other IoT examples using MW tools
MATLAB and Simulink Capabilities for IoT
04:30 pm - 05:00 pm Tea Break
20
Making Classroom Notes Living Documents
m W
x
k b
mx bx kx W
Mass-Spring-Damper System
21
Design and Analysis with Simulink
22
Teaching Multi-Domain Systems using Simscape
23
Let Students Explore More
24
Simulink
Run on target hardware
new new
25
Demo
26
How it Works
Wheels
Motor
Gyro Sensor
27
Modeling the Segway Dynamics
28
Different modeling approaches
Algorit
hm
Devel
opme
nt Simulink (Block diagram)
Data
Modeli
DATA Driven
ng
+-
Embedded Digital
Software Electronics
VHDL,
C, C++
Verilog
MCUDSP FPGA
ASIC
Integr
ation
Implement V&V
Physical Modeling (Schematic)
29
Modeling the Controller
PID
30
Testing the Controller
31
What our tools offer?
Simulink solution
Real-Time Toolbox for LEGO Platform enables you to execute Simulink and
Stateflow models on a LEGO MINDSTORMS hardware platform for rapid control
prototyping
library of I/O device drivers for LEGO MINDSTORMS sensors and actuators, a real-
time kernel, and an interface for real-time monitoring, parameter tuning, and data
logging.
32
LEGO MINDSTORMS NXT Block Library
33
Installing Target Library
Get from the MATLAB Toolstrip: Add-Ons
Get Hardware Support Packages
www.mathworks.com/academia
http://www.mathworks.com/hardwa
re-support
2013 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand names
may be trademarks or registered trademarks of their respective holders.
35
Machine Learning is Everywhere
Speech Recognition
Stock Prediction
Medical Diagnosis
Data Analytics
Robotics
and more
36
Machine Learning
Machine learning uses data and produces a program to perform a task
Computer Machine
Program Learning
37
Example: Human Activity Learning Using Mobile Phone Data
Machine
Learning
Data:
3-axial Accelerometer data
3-axial Gyroscope data
38
Challenges in Machine Learning
Hard to get started
Steps Challenge
Access, explore and analyze Data diversity
data Numeric, Images, Signals, Text not always tabular
Lack of domain tools
Preprocess data Filtering and feature extraction
Feature selection and transformation
Time consuming
Train models
Train several models to find the best
Avoid pitfalls
Assess model performance Over Fitting
Speed-Accuracy-Complexity tradeoffs
Iterate
39
Machine Learning Workflow
SUMMARY CLUSTER
REGRESSION
STATISTICS ANALYSIS
40
Agenda
Machine Learning
What is Machine Learning and why do we need it?
Common challenges in Machine Learning
41
Example 1: Human Activity Learning Using Mobile Phone Data
Objective: Train a classifier to classify
human activity from sensor data
Data:
Predictors 3-axial Accelerometer and
Gyroscope data
Response Activity:
Approach:
Extract features from raw sensor signals
Train and compare classifiers
Test results on new sensor data
42
Machine Learning Workflow for Example 1
1. Mean
Standard PCA
2.FILTERS CLASSIFICATION
Classification
deviation Learner
SUMMARY CLUSTER
3. PCA
STATISTICS ANALYSIS
REGRESSION
1. Mean
2. FILTERS
Standard PCA
deviation
SUMMARY CLUSTER
3.STATISTICS
PCA ANALYSIS
43
Agenda
Machine Learning
What is Machine Learning and why do we need it?
Common challenges in Machine Learning
44
Example 2: Real-time Car Identification Using Images
Objective: Train a classifier to identify car
type from a webcam video
Data:
Predictors Several images of cars:
Approach:
Extract features using Bag-of-words
Train and compare classifiers
Classify streaming video from a webcam
45
Machine Learning Workflow for Example 2
1. Build Bag-of-
features PCA
FILTERS CLASSIFICATION
Classification
2. Encode images Learner
SUMMARY CLUSTER
as new features
STATISTICS ANALYSIS
REGRESSION
Encode PCAas
FILTERS images
new features
SUMMARY CLUSTER
STATISTICS ANALYSIS
46
Agenda
Machine Learning
What is Machine Learning and why do we need it?
Common challenges in Machine Learning
47
MATLAB Strengths
Challenges in Machine
for Machine
LearningLearning
49
Agenda Day 1
Day 1
09:00 am - 09:30 am Registration
09:30 am - 09:45 am Welcome Address
MATLAB and Simulink in Engineering Education
MATLAB Basics for the Budding Engineer
Experimentation and Modeling in MATLAB
09:45 am -11:00 am
Design and Implementation
Project-Based Learning (Arduino, RaspberryPi)
Machine Learning & Data Analytics
11:00 am - 11:30 am Tea Break
Accessing, exploring, analyzing, and visualizing data in MATLAB
Using the Classification Learner app and functions in the Statistics and Machine Learning Toolbox to perform
11:30 am - 12:30 pm
Common machine learning tasks such as Feature selection and feature transformation
Demo: ADAS using live camera stream
12:30 pm - 2:30 pm Lunch Break
Electrical engineering concepts Using MATLAB and Simulink
System Identification & Neural Network Based System Modeling Techniques
Electrical engineering using Simscape (Physical Modeling)
Electrical engineering using SimPowersystems
Control system design and analysis
What is IoT?
02:30 pm - 04:30 pm
Market Drivers and Challenges
Introduction to ThingSpeak
Examples
Other IoT examples using MW tools
MATLAB and Simulink Capabilities for IoT
04:30 pm - 05:00 pm Tea Break
50
51
Agenda Day 2
Day 2
Mechanical engineering and Control System Concepts Using MATLAB
and Simulink.
10:00 am -11:00 pm
Mechanical engineering concepts using Simscape (Physical Modeling)
Multi-Body Dynamics Simulation using SimMechanics
11:00 am - 11:30 am Tea Break
Import CAD Models using GetMechanics App
11:30 am - 01:00 pm Implement Control on Low cost hardware - Arduino
Demo of Magnetic Levitation System
1:00 pm - 2:00 pm Lunch Break
52
What wakes you up in the morning?
Researchers Students
55
Student Competitions- IIT Bombay Racing team
57
Vibrational analysis of dynamic mechanical system using
Simulink and Simscape
DOF: Degrees-Of-Freedom
58
Vibrational analysis of dynamic mechanical system using
Simulink and Simscape
59
Vibrational analysis of dynamic mechanical system using
Simulink and Simscape
60
Vibrational analysis of dynamic mechanical system using
Simulink and Simscape
61
62
63
64
Content
65
Importing CAD models
67
Performing Co-Simulation with SimWise 4D
Perform Plant Simulation in SimWise 4D for Multibody Dynamics, FEA, Heat, Vibration, Buckling,
Durablity and Realiability.
68
Simulating Controls, FEA, Dynamics, Thermal, Sound and
Vibration in one go.
69
Performing multi-body dynamic system using SimMechanics
70
71
Thank You
My Contact
dsingh@mathworks.com
+91 9920288785
72