SlideShare a Scribd company logo
1 of 14
MATLAB® Introduction

             游懷祖
       AOCS/ME Dept, NSPO
         2006, March 02
捕魚的方法
• Online help:
  – http://www.mathworks.com
  – Home  Support  Product Documentation 
    “fishes” (HTML or PDF files)
• Offline help:
  – F1 key  help
  – Demos
     • Help  Demos
     • $MATLAB71/demos/*.swf (flash example movies)
  – Books
Before Getting Started…

 MATLAB: core program.
 MATLAB Toolboxes: extended
   program  M-files (or p-files).
 Simulink: GUI block diagram.
 Simulink Blocksets: extended
   Simulink.
Tonight: only (1) (75%) & (3) (25%).
Outline

• MATLAB
  – Mathematics
  – Graphics
  – Programming
• Simulink
  – Graphic User Interface (GUI) block diagram
    modeling
Integrated Design Environment
Mathematics
• Matrix-based representation
Mathematics Examples
Ex1: State transition matrix   Ex2: eigenvalue &
                               singular value decomposition
Graphics
• Basic graphic commands:




• Specialized plots & animation (make AVI movies):
  pie, histogram, contour plot, getframe, etc.
• Graphic handles: get, set commands; gcf, gca.
• Figure save, export, print, etc.
Graphic Examples
  Ex1: signal plot   Ex2: image conversion
Programming

• Data type (class):
  number (double),
  string (char), cell,
  logic, handle, etc.    Function handle Ex.

• Function handle:
  using @ or inline
  command
• Script vs. Function
• Array vs. For-loop
Programming Example (script)
Programming Example (function)
Simulink

• Choosing a solver: continuous/discrete
• Import/Export data
• Configuration sets/parameters
• Integrated with MATLAB
  workspace, M-files, C/C++  S-
  function
• Advanced level: Stateflow, Real-Time
  Workshop, xPC Target
Simulink Example
                                                              Scope
                                                          w

                  y                                                                XY Graph
     -C-          J    RotEOM y dot                                            x
                                                1
                  T                          xo s
     MOI                                                  q
                  Euler Rotational          Integrator                         y
                                                              q     tip pos
                   Eq. of motion
                                      -C- [w0,q0]                              z
                                                               body z-axis
   Pulse                                                      tip trajectory
                                                                               Terminator
  Generator




                  [0 0 1]

                      b3
                                       Matrix
                      DCM             Multiply       1
       1      q             be
                                                    tip
       q                              Product
                      q2c                           pos

  Masked subsystem

More Related Content

What's hot

Ecad &vlsi lab 18
Ecad &vlsi lab 18Ecad &vlsi lab 18
Ecad &vlsi lab 18Shekar Midde
 
Graphics in C programming
Graphics in C programmingGraphics in C programming
Graphics in C programmingKamal Acharya
 
Reed Solomon Matlab Projects Research Ideas
Reed Solomon Matlab Projects Research IdeasReed Solomon Matlab Projects Research Ideas
Reed Solomon Matlab Projects Research IdeasMatlab Simulation
 
Finite State Machines with Output
Finite State Machines with OutputFinite State Machines with Output
Finite State Machines with OutputMustafa Saeed
 
2014.06.24.graph support
2014.06.24.graph support2014.06.24.graph support
2014.06.24.graph supportJim Cooley
 
Pre-Cal 40S Slides April 18, 2008
Pre-Cal 40S Slides April 18, 2008Pre-Cal 40S Slides April 18, 2008
Pre-Cal 40S Slides April 18, 2008Darren Kuropatwa
 

What's hot (9)

Ecad &vlsi lab 18
Ecad &vlsi lab 18Ecad &vlsi lab 18
Ecad &vlsi lab 18
 
19 moore mealy
19 moore mealy19 moore mealy
19 moore mealy
 
Proof
ProofProof
Proof
 
Graphics in C programming
Graphics in C programmingGraphics in C programming
Graphics in C programming
 
Reed Solomon Matlab Projects Research Ideas
Reed Solomon Matlab Projects Research IdeasReed Solomon Matlab Projects Research Ideas
Reed Solomon Matlab Projects Research Ideas
 
Turing machine
Turing machineTuring machine
Turing machine
 
Finite State Machines with Output
Finite State Machines with OutputFinite State Machines with Output
Finite State Machines with Output
 
2014.06.24.graph support
2014.06.24.graph support2014.06.24.graph support
2014.06.24.graph support
 
Pre-Cal 40S Slides April 18, 2008
Pre-Cal 40S Slides April 18, 2008Pre-Cal 40S Slides April 18, 2008
Pre-Cal 40S Slides April 18, 2008
 

Similar to Matlab Intro

HWメニーコアシミュレータScalableCoreシステムの高速化 @IPSJ73
HWメニーコアシミュレータScalableCoreシステムの高速化 @IPSJ73HWメニーコアシミュレータScalableCoreシステムの高速化 @IPSJ73
HWメニーコアシミュレータScalableCoreシステムの高速化 @IPSJ73Shinya Takamaeda-Y
 
Intro matlab and convolution islam
Intro matlab and convolution islamIntro matlab and convolution islam
Intro matlab and convolution islamIslam Alabbasy
 
MATHEON Center Days: Index determination and structural analysis using Algori...
MATHEON Center Days: Index determination and structural analysis using Algori...MATHEON Center Days: Index determination and structural analysis using Algori...
MATHEON Center Days: Index determination and structural analysis using Algori...Dagmar Monett
 
Sebastian Schelter – Distributed Machine Learing with the Samsara DSL
Sebastian Schelter – Distributed Machine Learing with the Samsara DSLSebastian Schelter – Distributed Machine Learing with the Samsara DSL
Sebastian Schelter – Distributed Machine Learing with the Samsara DSLFlink Forward
 
Towards typesafe deep learning in scala
Towards typesafe deep learning in scalaTowards typesafe deep learning in scala
Towards typesafe deep learning in scalaTongfei Chen
 
FPGAによるメニーコアシミュレータScalableCoreシステムの正当性検証
FPGAによるメニーコアシミュレータScalableCoreシステムの正当性検証FPGAによるメニーコアシミュレータScalableCoreシステムの正当性検証
FPGAによるメニーコアシミュレータScalableCoreシステムの正当性検証Shinya Takamaeda-Y
 
2011/11/20 modul8 workshop at Apple Store Ginza
2011/11/20 modul8 workshop at Apple Store Ginza2011/11/20 modul8 workshop at Apple Store Ginza
2011/11/20 modul8 workshop at Apple Store Ginzaopticious
 
Challenges for advanced domain-specific frameworks
Challenges for advanced domain-specific frameworksChallenges for advanced domain-specific frameworks
Challenges for advanced domain-specific frameworksIstvan Rath
 
Co-occurrence Based Recommendations with Mahout, Scala and Spark
Co-occurrence Based Recommendations with Mahout, Scala and SparkCo-occurrence Based Recommendations with Mahout, Scala and Spark
Co-occurrence Based Recommendations with Mahout, Scala and Sparksscdotopen
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab Arshit Rai
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab Arshit Rai
 
Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)
Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)
Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)Craig Chao
 
Bringing Algebraic Semantics to Mahout
Bringing Algebraic Semantics to MahoutBringing Algebraic Semantics to Mahout
Bringing Algebraic Semantics to Mahoutsscdotopen
 

Similar to Matlab Intro (20)

HWメニーコアシミュレータScalableCoreシステムの高速化 @IPSJ73
HWメニーコアシミュレータScalableCoreシステムの高速化 @IPSJ73HWメニーコアシミュレータScalableCoreシステムの高速化 @IPSJ73
HWメニーコアシミュレータScalableCoreシステムの高速化 @IPSJ73
 
MATLAB & Image Processing
MATLAB & Image ProcessingMATLAB & Image Processing
MATLAB & Image Processing
 
Intro matlab and convolution islam
Intro matlab and convolution islamIntro matlab and convolution islam
Intro matlab and convolution islam
 
MATHEON Center Days: Index determination and structural analysis using Algori...
MATHEON Center Days: Index determination and structural analysis using Algori...MATHEON Center Days: Index determination and structural analysis using Algori...
MATHEON Center Days: Index determination and structural analysis using Algori...
 
Sebastian Schelter – Distributed Machine Learing with the Samsara DSL
Sebastian Schelter – Distributed Machine Learing with the Samsara DSLSebastian Schelter – Distributed Machine Learing with the Samsara DSL
Sebastian Schelter – Distributed Machine Learing with the Samsara DSL
 
Towards typesafe deep learning in scala
Towards typesafe deep learning in scalaTowards typesafe deep learning in scala
Towards typesafe deep learning in scala
 
FPGAによるメニーコアシミュレータScalableCoreシステムの正当性検証
FPGAによるメニーコアシミュレータScalableCoreシステムの正当性検証FPGAによるメニーコアシミュレータScalableCoreシステムの正当性検証
FPGAによるメニーコアシミュレータScalableCoreシステムの正当性検証
 
2011/11/20 modul8 workshop at Apple Store Ginza
2011/11/20 modul8 workshop at Apple Store Ginza2011/11/20 modul8 workshop at Apple Store Ginza
2011/11/20 modul8 workshop at Apple Store Ginza
 
Challenges for advanced domain-specific frameworks
Challenges for advanced domain-specific frameworksChallenges for advanced domain-specific frameworks
Challenges for advanced domain-specific frameworks
 
Matlab robotics toolbox
Matlab robotics toolboxMatlab robotics toolbox
Matlab robotics toolbox
 
Fit Main
Fit MainFit Main
Fit Main
 
Co-occurrence Based Recommendations with Mahout, Scala and Spark
Co-occurrence Based Recommendations with Mahout, Scala and SparkCo-occurrence Based Recommendations with Mahout, Scala and Spark
Co-occurrence Based Recommendations with Mahout, Scala and Spark
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
 
Matlab/R Dictionary
Matlab/R DictionaryMatlab/R Dictionary
Matlab/R Dictionary
 
Summer training matlab
Summer training matlab Summer training matlab
Summer training matlab
 
Lec2
Lec2Lec2
Lec2
 
MSc Presentation
MSc PresentationMSc Presentation
MSc Presentation
 
Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)
Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)
Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)
 
Matlab
MatlabMatlab
Matlab
 
Bringing Algebraic Semantics to Mahout
Bringing Algebraic Semantics to MahoutBringing Algebraic Semantics to Mahout
Bringing Algebraic Semantics to Mahout
 

Recently uploaded

New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 

Recently uploaded (20)

New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 

Matlab Intro

  • 1. MATLAB® Introduction 游懷祖 AOCS/ME Dept, NSPO 2006, March 02
  • 2. 捕魚的方法 • Online help: – http://www.mathworks.com – Home  Support  Product Documentation  “fishes” (HTML or PDF files) • Offline help: – F1 key  help – Demos • Help  Demos • $MATLAB71/demos/*.swf (flash example movies) – Books
  • 3. Before Getting Started…  MATLAB: core program.  MATLAB Toolboxes: extended program  M-files (or p-files).  Simulink: GUI block diagram.  Simulink Blocksets: extended Simulink. Tonight: only (1) (75%) & (3) (25%).
  • 4. Outline • MATLAB – Mathematics – Graphics – Programming • Simulink – Graphic User Interface (GUI) block diagram modeling
  • 7. Mathematics Examples Ex1: State transition matrix Ex2: eigenvalue & singular value decomposition
  • 8. Graphics • Basic graphic commands: • Specialized plots & animation (make AVI movies): pie, histogram, contour plot, getframe, etc. • Graphic handles: get, set commands; gcf, gca. • Figure save, export, print, etc.
  • 9. Graphic Examples Ex1: signal plot Ex2: image conversion
  • 10. Programming • Data type (class): number (double), string (char), cell, logic, handle, etc. Function handle Ex. • Function handle: using @ or inline command • Script vs. Function • Array vs. For-loop
  • 13. Simulink • Choosing a solver: continuous/discrete • Import/Export data • Configuration sets/parameters • Integrated with MATLAB workspace, M-files, C/C++  S- function • Advanced level: Stateflow, Real-Time Workshop, xPC Target
  • 14. Simulink Example Scope w y XY Graph -C- J RotEOM y dot x 1 T xo s MOI q Euler Rotational Integrator y q tip pos Eq. of motion -C- [w0,q0] z body z-axis Pulse tip trajectory Terminator Generator [0 0 1] b3 Matrix DCM Multiply 1 1 q be tip q Product q2c pos Masked subsystem