1 / 26

Introduction to MATLAB

Introduction to MATLAB. Chris Diduch University of New Brunswick January 31 – February 4, 2004 Royal Bhutan University RBIT, Rinchending Day-5. Robot Kinematics Animation. Robot Kinematic Animations. Build 3D cylinder shapes for each link

liam
Download Presentation

Introduction to MATLAB

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to MATLAB Chris Diduch University of New Brunswick January 31 – February 4, 2004 Royal Bhutan University RBIT, Rinchending Day-5

  2. Robot Kinematics Animation

  3. Robot Kinematic Animations • Build 3D cylinder shapes for each link • Coordinates of adjacent links are related through a homogenous transformation • The homogenous transformation specifies a rotation and translation of points • An end effector trajectory is generated by interpolating between points • Change the rotation and translation of each link as governed by the next interpolated point • Redraw or update the figure display

  4. Graphical User Interfaces • GUI’s are attached to figure windows • Pull down menus • Push buttons • Check boxes • Text boxes • Sliders • Popup menus • ….

  5. GUI for the Pendulum • Add a Pause and End push button • Add a Slider and Text box for changing and displaying the pendulum length parameter

  6. GUI for the Pendulum

  7. Day 5 Proposed Topics • Symbolic math toolbox • Simulink • Control systems toolbox • Identification toolbox • Signal processing toolbox

  8. Symbolic Math Toolbox • Manipulate and solve symbolic equations • MAPLE (licensed by Mathworks) is the underlying engine

  9. Two Axis Robot Kinematics q2 q1 q2 q1

  10. Two Axis RobotVelocity Kinematics

  11. Simulink • Graphical entry tool for dynamic systems • A dynamic model relating outputs to inputs • May use Simulink for simulation • With other toolboxes (Real time workshop, xPC Target …) • May interface to data acquisition hardware • May be compiled and executed under a real time operating system • Supports multiple targets

  12. Pendulum - Linear Model θ = π θ = 0

  13. Control System Toolbox • System representation in many forms: • Transfer function • State space • Pole–zero • Step, impulse and transient response • Bode, Nyquist, Nichols, pole-zero plots • Statefeedback • Pole placement • LQG • Model order reduction

  14. RLC Circuit L vin vout C R

  15. Feedback Amplifier Design vn - vo vp +

  16. + - Proportional Feedback vp vo vn R2 R1

  17. + vp - vn Proportional Feedback vo

  18. + - Lead Compensator vp vo vn R2 C R1

  19. u y Excitation Model Identification Toolbox System Identification Toolbox

  20. u y fft() fft() uf yf Nonparametric Model

  21. n yNoisey u + + Parametric Identification

  22. Identification Algorithms • Spectral analysis, spa() • Predictive error method, pem() • Autoregressive, ar() • Instrumental variables, iv4() • Autoregressive moving average, arma() • Box-Jenkins, bj()

  23. Signal Processing Toolbox • Filtering and FFT’s • Signals representation • Time and frequency response • IIR and FIR filter analysis and design • Statistical signal processing • Correlation and covariance • Spectral analysis • Windowing • Cepstrum analysis

  24. Digital Filters and Correlation • Input, u, is selected as a pulse • Plot u and filter output, y • Plot FFT of input pulse, u • Plot FFT of filter output, y • Plot autocorrelation of input pulse, u • Plot autocorrelation of filter output, y

  25. 3-D Visualization of a Digital Filter

  26. Final Summary • MATLAB windows and navigation. • Arrays: create, append, index, delete. • Array operations: element-by-element, matrix arithmetic, relational and logical. • Data analysis: linear equations, linear algebra, least squares. • 2-D and 3-D plots. • Handle graphics and simple animation • Toolboxes

More Related