Matbasics - MATLAB 7.4 Basics P Howard Fall 2007 Contents 1 Introduction 3 1.1 The Origin of MATLAB 3 1.2 Starting MATLAB at Texas A&M

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: MATLAB 7.4 Basics P. Howard Fall 2007 Contents 1 Introduction 3 1.1 The Origin of MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 Starting MATLAB at Texas A&M University . . . . . . . . . . . . . . . . . 3 1.3 The MATLAB Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.4 Basic Computations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.5 Variable Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.6 Diary Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.7 Clearing and Saving the Command Window . . . . . . . . . . . . . . . . . . 5 1.8 The Command History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.9 File Management from MATLAB . . . . . . . . . . . . . . . . . . . . . . . . 6 1.10 Getting Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 Symbolic Calculations in MATLAB 6 2.1 Defining Symbolic Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1.1 Complex Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1.2 The Clear Command . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 Manipulating Symbolic Expressions . . . . . . . . . . . . . . . . . . . . . . . 8 2.2.1 The Collect Command . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2.2 The Expand Command . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.2.3 The Factor Command . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.2.4 The Horner Command . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2.5 The Simple Command . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2.6 The Pretty Command . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.3 Solving Algebraic Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.4 Numerical Calculations with Symbolic Expressions . . . . . . . . . . . . . . 13 2.4.1 The Double and Eval commands . . . . . . . . . . . . . . . . . . . . 13 2.4.2 The Subs Command . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3 Plots and Graphs in MATLAB 15 3.1 Plotting Functions with the plot command . . . . . . . . . . . . . . . . . . . 17 3.2 Parametric Curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.3 Juxtaposing One Plot On Top of Another . . . . . . . . . . . . . . . . . . . 19 1 3.4 Multiple Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.5 Ezplot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.6 Saving Plots as Encapsulated Postscript Files . . . . . . . . . . . . . . . . . 22 4 Semilog and Double-log Plots 23 4.1 Semilog Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.1.1 Deriving Functional Relations from a Semilog Plot . . . . . . . . . . 24 4.2 Double-log Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5 Inline Functions and M-files 28 5.1 Inline Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Inline Functions ....
View Full Document

This note was uploaded on 03/29/2008 for the course MATH 442 taught by Professor Howard during the Spring '08 term at Texas A&M.

Page1 / 51

Matbasics - MATLAB 7.4 Basics P Howard Fall 2007 Contents 1 Introduction 3 1.1 The Origin of MATLAB 3 1.2 Starting MATLAB at Texas A&M

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online