MATLAB - PowerPoint PPT Presentation

About This Presentation
Title:

MATLAB

Description:

MATLAB The Language of Technical Computing BRIEF BACKGROUND MATLAB is a – PowerPoint PPT presentation

Number of Views:30
Avg rating:3.0/5.0
Slides: 12
Provided by: Carr
Category:
Tags: matlab | brief | command

less

Transcript and Presenter's Notes

Title: MATLAB


1
MATLAB
  • The Language of Technical Computing

2
BRIEF BACKGROUND
  • MATLAB is a "Matrix Laboratory"
  • For Students at Univ of New Mexico
  • interactive
  • easy input, output
  • operations on a whole vector or matrix at once
  • Slowly spread to other Univ and evolved.

3
MATLAB ENVIROMENT
Command Window
Command History
File Listing
4
Basics
  • Naming variables
  • Who command / Whos command
  • Clear command
  • Format long / Format short
  • Format rat

5
BUILT IN FUNCTIONS
  • Matlab has built in function
  • -
  • Exp, abs, square roots, logs
  • Sin, cos, tan, etc.

6
MATRICES AND VECTORS
  • Writing Vectors and Matrices
  • A comma or space separates s
  • A semicolon separates lines
  • Magnitude
  • Norm (A)
  • Cross and Dot product
  • Cross(A,B)
  • Dot (A, B)

7
MATRICES AND VECTORS
  • Transposed A and Determinant
  • A(I,j)
  • Referencing elements of a Vector
  • A(2)
  • Referencing elements of a Matrix
  • A(1,2)
  • Columns or Rows
  • A(. 2,3)
  • Changing elements
  • A(1,2)x

8
SOLVING MATRICES
  • RANK(a)
  • Inverse inv(A)
  • Gauss elmination (Row Reducing)
  • Rref(A)

9
PLOTTING AND GRAPHING
  • Define x and y
  • Plot (x,y)
  • Xlabel(x), ylabel(y)

10
MFILES
  • Building functions
  • Open up new window
  • Function outputs, outputs, etc file_name
    inputs, inputs, etc
  • Define variables
  • Compute components
  • write notes
  • End function
  • Recalling function
  • file_name( input variables, input varibales,
    etc)
  • Editing Functions
  • ?
  • Right click and fix

11
PROJECTS
  • Importing for graphing
  • Functions
  • Interia principles
Write a Comment
User Comments (0)
About PowerShow.com