Matlab Tutorial

Matlab 7.3, will be the focus of the tutorial sections designed for getting started. … provides a brief introduction to this tutorial series and to. Matlab. …

More PDF Content

Matlab Tutorial Matlab Tutorial Part I: Getting Started ……………… 4 Section 1: Introduction……………. 4 About this Document ………………… 4 Introduction to Matlab ………………. 5 Section 2: An Overview of Matlab ……………… 5 Access to Matlab and ITS Matlab consulting services ………………. 5 Getting Started …………….. 6 The Desktop Layout……………. 7 The Current Directory Window ………………. 8 The Workspace Window……………. 8 The Command History Window……………… 9 The Command Window…………….. 9 The Figure Window ………………… 10 Section 3: Notation, Syntax, and Operations …………………. 11 Variable names…………………. 11 Numerical conventions ……………. 11 Geometrical and directional conventions…………….. 12 Operator and delimiter symbolics ………………… 12 Multiple operations …………………. 14 Displaying content of multi element variables …………………. 16 Section 4: Importing and Exporting Information …………………. 17 Command Line Import…………….. 17 The Import Wizard……………. 17 Import Functions ………………. 19 M file Scripts …………….. 22 Export Functions………………. 22 M Books …………….. 25 Advanced Methods for Binary Information……………….. 27 Part II: Computing and Programming……………… 28 Section 5: Computational Procedures………………. 28 Special Built in Constants………………. 28 Special Built in Functions………………. 29 Compound Expressions and Operator Precedence ……………. 31 Commutivity of Operations and Finite Decimal Expansion Approximations………. 33 Computing with matrices and vectors…………………. 33 Simultaneous linear equations ………………. 34 Eigenvectors and Eigenvalues ………………. 35 Roots of polynomials and zeros of functions……………… 36 Poles, residues, and partial fraction expansion …………………. 38 2 Convolution and deconvolution…………….. 39 Fast Fourier and Inverse Fourier Transforms …………….. 39 Numerical Differentiation and Integration…………………. 40 Numerical solution of differential equations ……………… 42 Section 6: Programming ……………… 43 Using the Editor ……………….. 43 Types and Structures of M files…………….. 43 The Shortcut Utility ………………… 44 Publishing to HTML ……………….. 46 Internal Documentation …………………. 46 Passing variables by name and value……………. 47 Function evaluation and function handles …………………. 49 Function recursion ……………. 50 Flow control ………………. 51 String evaluation and manipulation ……………… 53 Keyboard input…………………. 54 Multidimensional arrays and indexing………………… 55 Debugging…………………. 57 Using Matlab with External Code………………… 61 Exchanging and viewing text information…………………. 61 Compiling and calling external files from Matlab …………….. 62 Calling Matlab objects from external programs ……………….. 64 Using Java Classes in Matlab ……………….. 64 Part III: Graphics and Data Analysis………………. 66 Section 7: Graphics and Data Visualization …………………. 66 Two dimensional plotting ………………. 66 Sub plotting……………….. 69 Patching and Filling ………………… 70 Three dimensional plotting …………….. 70 Animation …………………. 75 The Handle Graphics system ………………… 78 Saving and exporting graphics………………. 84 Section 8: Data Analysis……………… 85 Data analysis functions ……………. 85 Descriptive statistics ……………….. 85 Sorting………………… 87 Regression and curve fitting …………………. 88 Signal processing ……………… 90 Image processing ……………… 94 Part IV: Modeling and Simulation…………….. 99 Section 9: Modeling and Simulation ………………. 99 System Identification ………………. 99 Using the Control System Toolbox………………. 99 Optimization Toolbox……………. 102 3 Using Simulink ………………. 105 Simulink Library Browser ……………. 106 Construction/ Simulation of Dynamical Systems ……………. 111 Simulink Subsystems …………….. 123 Simulink S Functions…………….. 126 4 Part I: Getting Started Section 1: Introduction About this Document This tutorial series introduces you to the MatlabR2006b suite of applications from Mathworks, Inc. The R2006b release consists of version 7.3 of the primary Matlab application along with some auxiliary modeling and simulation applications and specialized toolboxes. The suite as a whole will be surveyed but the primary application, Matlab 7.3, will be the focus of the

Download Matlab Tutorial pdf from ssc.utexas.edu, 130 pages, 1621.41KB.