Introduction to Matlab - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

Introduction to Matlab

Description:

Introduction to Matlab By Nazarudin,S.Si,M.Si,PhD What is Matlab MATLAB is an integrated technical computing environment that combines numeric computation, advanced ... – PowerPoint PPT presentation

Number of Views:555
Avg rating:3.0/5.0
Slides: 18
Provided by: Ulyarti
Category:

less

Transcript and Presenter's Notes

Title: Introduction to Matlab


1
Introduction to Matlab
  • By
  • Nazarudin,S.Si,M.Si,PhD

2
What is Matlab
  • MATLAB is an integrated technical computing
    environment that combines numeric computation,
    advanced graphics and visualization, and a high
    level programming language (www.mathworks.com/prod
    ucts/matlab)

3
Using Matlab you can use it to
  • graph functions
  • solve equations,
  • perform statistical tests
  • and do much more.

4
It is a high-level programminglanguage, so
  • You can communicate with its cousins, e.g.,
    FORTRAN and C.
  • You can produce sound and animate graphics.
  • You can do simulations and modeling (especially
    if you have access not just to basic MATLAB but
    also to its accessory SIMULINK).
  • You can prepare materials for export to the World
    Wide Web.
  • In addition, you can use MATLAB, in conjunction
    with th e word processing and desktop publishing
    features of Microsoft Word, to combine
    mathematical computations with text and graphics
    to produce a polished, integrated, and
    interactive document.

5
  • A program this sophisticated contains many
    features and options. There
  • are literally hundreds of useful commands at your
    disposal. The MATLAB
  • help documentation contains thousands of entries.
    The standard references,
  • whether the MathWorks Users Guide for the
    product, or any of our competitors,
  • contain myriad tables describing an endless
    stream of commands,
  • options, and features that the user might be
    expected to learn or access.
  • MATLAB is more than a fancy calculator it is an
    extremely useful and
  • versatile tool. Even if you only know a little
    about MATLAB, you can use it
  • to accomplish wonderful things. The hard part,
    however, is figuring out which
  • of the hundreds of commands, scores of help
    pages, and thousands of items of
  • documentation you need to look at to start using
    it quickly and effectively.
  • Thats where we come in

6
A sophisticated program
  • The program contains many features and options.
  • There are literally hundreds of useful commands
    at your disposal.
  • MATLAB is more than a fancy calculator it is an
    extremely useful and versatile tool. Even if you
    only know a little about MATLAB, you can use it
    to accomplish wonderful things. The hard part,
    however, is figuring out which of the hundreds of
    commands, scores of help pages, and thousands of
    items of documentation you need to look at to
    start using it quickly and effectively.

7
Getting Started
  • You start MATLAB as you would any other software
    application. On a PC you access it via the Start
    menu, in Programs under a folder such as MatlabR12

8
A Matlab desktop
9
Matlab Basics
  • you can use MATLAB to do arithmetic as you would
    a calculator. You can use
  • to add
  • - to subtract
  • to multiply
  • / to divide
  • ˆ to exponentiate

10
Examples for arithmetic
  • gtgt 3ˆ2 - (5 4)/2 63
  • ans
  • 510.9934
  • ansˆ2 sqrt(ans)
  • ans
  • 510.9934

11
Examples for arithmetic(continue)
  • gtgt u cos(10)
  • u -0.8391
  • gtgt v sin(10)
  • v -0.5440
  • gtgt uˆ2 vˆ2
  • ans 1

12
Examples for algebra
  • gtgt syms x y
  • gtgt (x - y)(x - y)ˆ2
  • ans
  • (x-y)3
  • gtgt expand(ans)
  • ans
  • x3-3x2y3xy2-y3

13
Examples for algebra (continue)
  • gtgt factor(ans)
  • ans
  • (x-y)3

14
Examples for algebra (continue)
  • MATLAB has a command called simplify, which you
    can sometimes use
  • to express a formula as simply as possible. For
    example,
  • gtgt simplify((xˆ3 - yˆ3)/(x - y))
  • ans
  • x2xyy2

15
Example for graph
16
3D surface graph
17
Contour graph
Write a Comment
User Comments (0)
About PowerShow.com