2) Matlab_Miniguide_Rev_7.2

2) Matlab_Miniguide_Rev_7.2 - Chemical Engineering...

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

View Full Document Right Arrow Icon
Chemical Engineering Department University of Florida © Oscar D. Crisalle 1997- 200 7 File Name : Matlab_Miniguide_Rev_7.doc MATLAB MINIGUIDE CONTENTS 1.1 MATLAB Manuals and Literature ........................................................... 1 1.1.1 Manuals and Tutorials Available at CIRCA ................................. 1 1.1.2 Manuals Available in the Biery Room in Chemical Engineering..1 1.2 Introduction to MATLAB ......................................................................... 2 1.2.1 Modes of Using MATLAB .......................................................... 2 1.2.2 Executing the MATLAB Program ............................................... 2 1.2.3 Exiting from the MATLAB Program ........................................... 2 1.2.4 Obtaining On-Line Help .............................................................. 2 1.2.5 Useful Keyboard Commands ....................................................... 3 1.2.6 Adjusting the Format of Numbers Displayed ............................... 3 1.3 List of Essential Commands and Operators ............................................. 4 1.4 Overview of MATLAB Operations ........................................................... 5 1.4.1 Defining Vectors, Matrices and Polynomials ............................... 5 1.4.2 Defining Three Useful Functions— ones, zeros, eye .................... 6 1.4.3 Defining Transcendental Functions— sin, cos, log, exp ............... 7 1.4.4 Defining Basic Operations— det, eig, conv, poly ......................... 8 1.5 Advanced MATLAB Commands .............................................................. 10 1.5.1 Plotting ........................................................................................ 10 1.5.2 Displaying to the Screen .............................................................. 11 1.5.3 Operating with Strings of Characters ............................................ 12 1.5.4 Appending Results to a Vector or a Matrix .................................. 12 1.5.5 Taking Input from the Keyboard .................................................. 14 1.5.6 Creating a Diary File .................................................................... 14 1.5.7. Creating an M-File ....................................................................... 15 1.5.8 If Structure ................................................................................... 15 1.5.9 While Structure ............................................................................ 16 1.5.10 For Structure ................................................................................ 16 1.5.11 Break Command .......................................................................... 17 1.5.12 M-Functions ................................................................................ 17 1.5.13 Quadrature/Numerical Integration ................................................ 19 1.5.14 ODE23/ODE45 ............................................................................ 20
Image of page 1

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

View Full Document Right Arrow Icon
- 1 - MATLAB Miniguide 1.1 MATLAB MANUALS AND LITERATURE Program name: MATLAB (personal computers) PRO-MATLAB (workstations) Note : Manuals may be titled MATLAB or PRO-MATLAB . Basic manuals an documentation: a. MATLAB user's guide (tutorial and reference) b. Control Toolbox manual c. SIMULINK Manual d. Various manuals for each toolbox 1.1.1 Manuals and Tutorials Available at CIRCA a. CIRCA Lab: Room: CSE 211 - Phone: 392-2446 Hours: M-F 8:00 AM - midnight Sat. Noon - Midnight b. CIRCA consultants office Room: CSE 520 - Phone: 2-HELP (2-4357) Hours: M-F 9:00 AM - 5:00 PM 1.1.2 Manuals Available in the Biery Room in Chemical Engineering A copy of the MATLAB and SIMULINK User's guides are available in the Biery room. Please do not remove these manuals from the room. - 2 - MATLAB Miniguide 1.2 INTRODUCTION TO MATLAB MATLAB is a high-level computer language with powerful commands that emphasize numerical operations with matrices. The word MATLAB itself is derived from the words MATrix LABoratory . Originally MATLAB carried out only linear algebra calculations (matrix operations) but has now been extended to include operations useful for signal processing, control analysis and design, nonlinear differential equations, and many others. These extensions are done by a number of routines collected under directories called Toolboxes , such as the following: Control toolbox Robust control toolbox Identification toolbox MFD (multivariable frequency design) toolbox Optimization toolbox Splines toolbox The related program SIMULINK includes MATLAB plus additional capabilities for simulating nonlinear dynamic systems. MATLAB is available in almost all computer platforms (IBM, Macintosh, HP, Sun, DEC). All commands remain unchanged from one computer to another.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern