SlideShare a Scribd company logo
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

PPT
OpenGL Transformations
PDF
PDF
reinforced concrete graduation project 1
PPTX
Matlab Feature Extraction Using Segmentation And Edge Detection
DOC
2009-2 기말고사문제(초고주파공학)
PDF
2009 Punjab Technical University B.C.A Microprocessor Question paper
PDF
Writeup advanced lane_lines_project
PDF
13 quadratic formtemplate
OpenGL Transformations
reinforced concrete graduation project 1
Matlab Feature Extraction Using Segmentation And Edge Detection
2009-2 기말고사문제(초고주파공학)
2009 Punjab Technical University B.C.A Microprocessor Question paper
Writeup advanced lane_lines_project
13 quadratic formtemplate

What's hot (9)

PDF
Ecad &vlsi lab 18
PPT
19 moore mealy
PDF
PPTX
Graphics in C programming
PPTX
Reed Solomon Matlab Projects Research Ideas
PPTX
Turing machine
PDF
Finite State Machines with Output
PDF
2014.06.24.graph support
PDF
Pre-Cal 40S Slides April 18, 2008
Ecad &vlsi lab 18
19 moore mealy
Graphics in C programming
Reed Solomon Matlab Projects Research Ideas
Turing machine
Finite State Machines with Output
2014.06.24.graph support
Pre-Cal 40S Slides April 18, 2008
Ad

Similar to Matlab Intro (20)

PDF
HWメニーコアシミュレータScalableCoreシステムの高速化 @IPSJ73
PDF
slides_python_ for basic operation of it
PPTX
MATLAB & Image Processing
PPT
Intro matlab and convolution islam
PDF
MATHEON Center Days: Index determination and structural analysis using Algori...
PDF
Sebastian Schelter – Distributed Machine Learing with the Samsara DSL
PDF
Towards typesafe deep learning in scala
PDF
FPGAによるメニーコアシミュレータScalableCoreシステムの正当性検証
KEY
2011/11/20 modul8 workshop at Apple Store Ginza
PDF
Challenges for advanced domain-specific frameworks
ODP
Matlab robotics toolbox
PDF
Fit Main
PDF
Co-occurrence Based Recommendations with Mahout, Scala and Spark
PPTX
Summer training matlab
PPTX
QuMat_ Apache Mahout's Quantum Computing Interface.pptx
PDF
Matlab/R Dictionary
PDF
Summer training matlab
PDF
PDF
MSc Presentation
PPTX
Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)
HWメニーコアシミュレータScalableCoreシステムの高速化 @IPSJ73
slides_python_ for basic operation of it
MATLAB & Image Processing
Intro matlab and convolution islam
MATHEON Center Days: Index determination and structural analysis using Algori...
Sebastian Schelter – Distributed Machine Learing with the Samsara DSL
Towards typesafe deep learning in scala
FPGAによるメニーコアシミュレータScalableCoreシステムの正当性検証
2011/11/20 modul8 workshop at Apple Store Ginza
Challenges for advanced domain-specific frameworks
Matlab robotics toolbox
Fit Main
Co-occurrence Based Recommendations with Mahout, Scala and Spark
Summer training matlab
QuMat_ Apache Mahout's Quantum Computing Interface.pptx
Matlab/R Dictionary
Summer training matlab
MSc Presentation
Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)
Ad

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Cloud computing and distributed systems.
PDF
Electronic commerce courselecture one. Pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
cuic standard and advanced reporting.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPT
Teaching material agriculture food technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Reach Out and Touch Someone: Haptics and Empathic Computing
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
MIND Revenue Release Quarter 2 2025 Press Release
Unlocking AI with Model Context Protocol (MCP)
Chapter 3 Spatial Domain Image Processing.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectroscopy.pptx food analysis technology
Cloud computing and distributed systems.
Electronic commerce courselecture one. Pdf
sap open course for s4hana steps from ECC to s4
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
A comparative analysis of optical character recognition models for extracting...
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Weekly Chronicles - August'25-Week II
cuic standard and advanced reporting.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Teaching material agriculture food technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

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