matlab workshop lecture 1

Upload: manishdhawan78

Post on 27-Feb-2018

236 views

Category:

Documents


2 download

TRANSCRIPT

  • 7/25/2019 MATLAB Workshop Lecture 1

    1/43

    MATLAB WORKSHOPMATLAB WORKSHOP

  • 7/25/2019 MATLAB Workshop Lecture 1

    2/43

    ABOUT WORKSHOPABOUT WORKSHOP

    In this workshop you will learn a few ofthe basic functions of MATLAB.

    First we will start working with basic

    numbers, formats, demos,mathematical functions, setting

    ariables, matrices and generating

    plots by using the plot functions.Brief oeriew of how to generate

    scripts in MATLAB called M!files.

  • 7/25/2019 MATLAB Workshop Lecture 1

    3/43

    ABOUT WORKSHOPABOUT WORKSHOP

    The workshop is designed for studentsusing either the professional ersion of

    MATLABwith the "ontrol #ystems Toolbo$

    and the #ignal %rocessing Toolbo$, or usingthe #tudent &dition of MATLAB.

    For latest ersion of MATLAB at the timeand

    more information on MATLAB, contact

    The Mathworks, Inc.www.mathworks.com

  • 7/25/2019 MATLAB Workshop Lecture 1

    4/43

    MATLAB WORKSHOPMATLAB WORKSHOP

    ecture # 1

    ecture # 1

    Wednesdayday January 13

    ednesdayday January 13

    Introduction

    ntroduction

    MAT AB Demos

    AT AB Demos

    MAT AB BasicsAT AB Basics

    ecture # 2

    ecture # 2

    Wednesday January 20

    ednesday January 20

    MAT AB Basics

    AT AB Basics

    MAT AB Plots

    AT AB Plots

    MAT AB !am"les

    AT AB !am"les

    ecture # 3

    ecture # 3

    Wednesday January

    ednesday January

    MAT AB $undation

    AT AB $undation

    Te!t%oo& !am"les

    e!t%oo& !am"les

    '(ort )ui*

    (ort )ui*

    http://www.mathworks.com/access/helpdesk/help/helpdesk.shtmlhttp://www.mathworks.com/access/helpdesk/help/helpdesk.shtmlhttp://www.mathworks.com/access/helpdesk/help/helpdesk.shtmlhttp://www.mathworks.com/http://www.mathworks.com/http://www.mathworks.com/http://www.mathworks.com/http://www.mathworks.com/http://www.mathworks.com/access/helpdesk/help/helpdesk.shtmlhttp://www.mathworks.com/http://www.mathworks.com/access/helpdesk/help/helpdesk.shtml
  • 7/25/2019 MATLAB Workshop Lecture 1

    5/43

    MATLAB WORKSHOPMATLAB WORKSHOP

    ecture # 1

    ecture # 1

    Wednesday Jan 13

    ednesday Jan 13

    Introduction

    ntroduction

    MAT AB Demos

    AT AB Demos

    MAT AB BasicsAT AB Basics

  • 7/25/2019 MATLAB Workshop Lecture 1

    6/43

    MATLAB IntroductionMATLAB Introduction

    MATLAB is both computerprogramming language and software

    enironment for using that language

    effectiely.MATLAB is matri$!oriented, so what

    would take seeral statements in " or

    Fortran can usually be accomplishedin 'ust a few lines using MATLAB(s

    built!in matri$ and ector operations

  • 7/25/2019 MATLAB Workshop Lecture 1

    7/43

    MATLAB IntroductionMATLAB Introduction

    F)*T*A+F)*T*A+ real- A/01,012, B/01,012, "/01,012real- A/01,012, B/01,012, "/01,012

    do i30,01do i30,01do '30,01do '30,01

    "/i,'2 3 A/i,'2 4 B/i,'2"/i,'2 3 A/i,'2 4 B/i,'201 continue01 continue51 continue 51 continue

    MATLABMATLAB

    " 3 A 4 B" 3 A 4 B

  • 7/25/2019 MATLAB Workshop Lecture 1

    8/43

    MATLAB IntroductionMATLAB Introduction

    MATLAB is aailablefor M# 6indows,

    Macintosh personal

    computer, 7ni$ and

    other operating

    systems.

  • 7/25/2019 MATLAB Workshop Lecture 1

    9/43

    MATLAB IntroductionMATLAB Introduction

    MATLAB, which stands forMATri$ LABoratory, is a

    powerful, general!purposesystem or enironment for

    doing mathematics,

    scientific and engireeng

    calculations.

  • 7/25/2019 MATLAB Workshop Lecture 1

    10/43

    MATLAB IntroductionMATLAB Introduction

    MATLAB is a 89igh!%erformance +umeric

    "omputation and

    :isuali;ation #oftware8

    package.

  • 7/25/2019 MATLAB Workshop Lecture 1

    11/43

    MATLAB IntroductionMATLAB Introduction

    MATLAB is aninteractie system

    whose basic data is a

    matri$ that does not

    re

  • 7/25/2019 MATLAB Workshop Lecture 1

    12/43

    MATLAB IntroductionMATLAB Introduction

    MATLAB supports many types of graph and surfaceplots line plots /$ s. y2, filled plots, bar charts, pie charts, parametric plots, polar plots, contour plots,

    density plots, log a$is plots, surface plots, parametric plots in = dimensions and spherical

    plots.

  • 7/25/2019 MATLAB Workshop Lecture 1

    13/43

    MATLAB IntroductionMATLAB Introduction

    MATLAB has a number of add!on software modules,called toolbox, that perform more speciali;ed

    computations.

    #ignal > Image %rocessing

    #ignal %rocessing! Image %rocessing"ommunications ! #ystem Identification ! 6aelet

    Filter ?esign

    "ontrol ?esign

    "ontrol #ystem ! Fu;;y Logic ! *obust "ontrol ! @!Analysis and #ynthesis ! LMI "ontrol ! Model

    %redictie "ontrol Model!Based "alibration

    More than 1 toolbo$esMore than 1 toolbo$es

  • 7/25/2019 MATLAB Workshop Lecture 1

    14/43

    MATLAB IntroductionMATLAB Introduction

    In 6indowssystems

    MATLAB is

    started by

    double!clicking

    the mouse onthe appropriate

    icon.

    http://www.mathworks.com/products/image/http://www.mathworks.com/products/signal/http://www.mathworks.com/access/helpdesk/help/helpdesk.shtmlhttp://www.mathworks.com/products/image/http://www.mathworks.com/products/signal/http://www.mathworks.com/access/helpdesk/help/helpdesk.shtml
  • 7/25/2019 MATLAB Workshop Lecture 1

    15/43

    MATLABMATLAB"ommand"ommand

    6indow6indow

  • 7/25/2019 MATLAB Workshop Lecture 1

    16/43

    FileFile

  • 7/25/2019 MATLAB Workshop Lecture 1

    17/43

    &dit&dit

  • 7/25/2019 MATLAB Workshop Lecture 1

    18/43

    :iew:iew

  • 7/25/2019 MATLAB Workshop Lecture 1

    19/43

    :iew:iew

  • 7/25/2019 MATLAB Workshop Lecture 1

    20/43

    :iew:iew

  • 7/25/2019 MATLAB Workshop Lecture 1

    21/43

    6eb6eb

  • 7/25/2019 MATLAB Workshop Lecture 1

    22/43

    9elp9elp

  • 7/25/2019 MATLAB Workshop Lecture 1

    23/43

  • 7/25/2019 MATLAB Workshop Lecture 1

    24/43

    MATLAB IntroductionMATLAB Introduction

    MATLAB includes hundredsof functions for

    ?ata analysis and isuali;ation, +umeric and symbolic computation,

    &ngineering and #cientific graphics,

    Modeling, simulation, and prototyping, &igenalue, singular alue

  • 7/25/2019 MATLAB Workshop Lecture 1

    25/43

    MATLAB DemosMATLAB Demos

    ?emonstrations areinaluable since they

    gie an indication of

    the MATLABcapabilities.

    A comprehensie set

    are aailable by

    typing the command

    CCdemoin MATLAB

    prompt.

  • 7/25/2019 MATLAB Workshop Lecture 1

    26/43

  • 7/25/2019 MATLAB Workshop Lecture 1

    27/43

    MATLAB DemosMATLAB Demos

    MATLAB works with scalars,ectors and matrices

    Basic matri$ operations,

    Inerses of matrices,

    Draphs of matrices,

    Matri$ manipulation,

    %rogramming, application

    deelopment, and D7I design

  • 7/25/2019 MATLAB Workshop Lecture 1

    28/43

  • 7/25/2019 MATLAB Workshop Lecture 1

    29/43

    MATLAB DemosMATLAB Demos

    MATLAB has remarkablegraphics capacities

    5!? and =!? plots, Line plotting,

    =!? surface plot,

    #plash screen plot,

    %lot of comple$ functions and ...

  • 7/25/2019 MATLAB Workshop Lecture 1

    30/43

  • 7/25/2019 MATLAB Workshop Lecture 1

    31/43

    MATLAB DemosMATLAB Demos

    MATLAB has remarkable graphicscapacities, =E? plots are some of

    them

    =!? plots in 9andel Draphics

    %lot Type,

    #hading,

    "olomap,

    A$is and ...

  • 7/25/2019 MATLAB Workshop Lecture 1

    32/43

  • 7/25/2019 MATLAB Workshop Lecture 1

    33/43

    MATLAB DemosMATLAB Demos

    MATLAB has remarkable graphicscapacities, gallery is one of them

    The Dallery is a place to hang particularly

    elegant e$amples of graphics isuali;ationin MATLAB.

    not,

    Guier,

    lein II,

    "ruller and ...

  • 7/25/2019 MATLAB Workshop Lecture 1

    34/43

  • 7/25/2019 MATLAB Workshop Lecture 1

    35/43

    MATLAB DemosMATLAB Demos

    MATLAB has manytoolbo$es

    "ontrol toolbo$ is one of the

    important toolbo$ in MATLAB.

    *L" "ircuit *esponse,

    Dain and %hase Margins, +otch Filter ?iscrete,

    %I? and ...

  • 7/25/2019 MATLAB Workshop Lecture 1

    36/43

  • 7/25/2019 MATLAB Workshop Lecture 1

    37/43

    MATLAB DemosMATLAB Demos

    MATLAB has many toolbo$es #ignal %rocessing toolbo$ is one of

    the important toolob$ in MATLAB.

    ?esigning Filter, Filtering a #ignal,

    ?iscrete and "ontinuous Fourier

    Transform, #pectral Analysis and ...

  • 7/25/2019 MATLAB Workshop Lecture 1

    38/43

  • 7/25/2019 MATLAB Workshop Lecture 1

    39/43

    MATLAB DemosMATLAB Demos

    #imulink has the ability tosimulate a large range of

    systems, from ery simple to

    e$traordinarily comple$. The

    Model and demonstrations that

    you will see in this sectioninclude both simple and

    comple$ systems.

  • 7/25/2019 MATLAB Workshop Lecture 1

    40/43

  • 7/25/2019 MATLAB Workshop Lecture 1

    41/43

    MATLAB DemosMATLAB Demos

    #imulink has the ability tosimulate a large range of systems,

    in the menu of #imulation we

    hae %ause.

    #top, #imulation %arameters,

    #tart,

  • 7/25/2019 MATLAB Workshop Lecture 1

    42/43

  • 7/25/2019 MATLAB Workshop Lecture 1

    43/43

    MATLAB WORKSHOPMATLAB WORKSHOP

    nd o+ ecture # 1

    nd o+ ecture # 1

    MAT AB Basics

    AT AB Basics

    ,e!t

    e!t

    time

    ime