matlab1 - A Beginners Guide to MATLAB* 8 6 4 2 0 -2 -4 -6 3...

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

View Full Document Right Arrow Icon
A Beginner’s Guide to MATLAB * -3 -2 -1 0 1 2 3 -3 -2 -1 0 1 2 3 -6 -4 -2 0 2 4 6 8 x y Christos Xenophontos Department of Mathematical Sciences Loyola College * MATLAB is a registered trademark of The MathWorks Inc. A first draft of this document appeared as Technical Report 98-02, Department of Mathematics & Computer Science, Clarkson University.
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 TABLE OF CONTENTS 1. Introduction Page 1.1 MATLAB at Loyola College 3 1.2 How to read this tutorial 4 2. MATLAB Basics 2.1 The basic features 4 2.2 Vectors and matrices 7 2.3 Built-in functions 13 2.4 Plotting 22 3. Programming in MATLAB 3.1 M-files: Scripts and functions 27 3.2 Loops 29 3.3 If statement 33 4. Additional Topics 4.1 Polynomials in MATLAB 36 4.2 Numerical Methods 38 5. Closing Remarks and References 4 2
Background image of page 2
3 1. INTRODUCTION MATLAB, which stands for MAT rix LAB oratory, is a state-of-the-art mathematical software package, which is used extensively in both academia and industry. It is an interactive program for numerical computation and data visualization, which along with its programming capabilities provides a very useful tool for almost all areas of science and engineering. Unlike other mathematical packages, such as MAPLE or MATHEMATICA, MATLAB cannot perform symbolic manipulations without the use of additional Toolboxes. It remains however, one of the leading software packages for numerical computation. As you might guess from its name, MATLAB deals mainly with matrices. A scalar is a 1-by-1 matrix and a row vector of length say 5, is a 1-by-5 matrix. We will elaborate more on these and other features of MATLAB in the sections that follow. One of the many advantages of MATLAB is the natural notation used. It looks a lot like the notation that you encounter in a linear algebra course. This makes the use of the program especially easy and it is what makes MATLAB a natural choice for numerical computations. The purpose of this tutorial is to familiarize the beginner to MATLAB, by introducing the basic features and commands of the program. It is in no way a complete reference and the reader is encouraged to further enhance his or her knowledge of MATLAB by reading some of the suggested references at the end of this guide. 1.1 MATLAB at Loyola College MATLAB runs from ANY networked computer (e.g. your dorm room, the Math Lab in KH 318, etc). To access it, go to the MetaFrame Presentation Server, located at http://www.loyola.edu/moresoftware/ , and login using your Groupwise username and password - if your Groupwise password will not work then try you student ID number as a password. Once you login you will see a folder with applications, MATLAB being one of them. Double-click on the MATLAB icon and off you go . .. Note: It is possible that the first time you do this, you may have to install some client software on your PC. Simply follow the instructions on the webpage (after you login) and you should be fine.
Background image of page 3

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

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

Page1 / 42

matlab1 - A Beginners Guide to MATLAB* 8 6 4 2 0 -2 -4 -6 3...

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

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