matlab_instructions

matlab_instructions - ME365 MATLAB Introduction Notes...

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

View Full Document Right Arrow Icon
ME365 MATLAB Introduction Notes - 1 - MATLAB INSTRUCTIONS FOR ME 365 (Updated: Fall 2004) This document is a much shortened version of the instruction set for MATLAB. It is intended to help you get started. Once you know the basics, the MATLAB help function can be used to help you learn the commands and how to run them. I like the student version manual, because it has examples that are helpful.
Background image of page 1

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

View Full DocumentRight Arrow Icon
ME365 MATLAB Introduction Notes - 2 - TABLE OF CONTENTS A. The Preliminaries. ......................................................................................................... 3 A.1 Computer Setup for MATLAB. ................................................................................... 3 A.2 Unix commands while running MATLAB on a UNIX machine. . ................................. 4 A.3. Some very basic commands. . .................................................................................. 5 A.4 Getting Help . ............................................................................................................. 7 A.5 Creating an M-file. . .................................................................................................... 9 A.6 Plotting a graph on the screen . ............................................................................... 11 A.7 Sending the plot to the printer. . ............................................................................... 13 A.10 Loading Data. . ....................................................................................................... 14 B. Some Examples of Things You May Do. . ................................................................ 16 B.1 Entering Data and Plotting it. . ................................................................................. 16 B.2 The Dreaded "dot" Command, Subtitled: Loops Without Loops! . ............................ 18 B.3 Calculating and Plotting a Step Response. . ............................................................ 21 B.4 Calculating an Plotting a Frequency Response Function. . ...................................... 22 C. A Little More Sophistication in MATLAB Programming . ......................................... 25 C.1 Loops in a Fourier Series Example . ........................................................................ 25 C.2 If Statements . .......................................................................................................... 27 C.3 While Statements . ................................................................................................... 27 C.4 Subroutines/Functions . ........................................................................................... 28 C.5 Changing graph font sizes and line thickness, etc. . ............................................... 29
Background image of page 2
ME365 MATLAB Introduction Notes - 3 - A. The Preliminaries On the PC's the basic commands like plotting, printing and editing are found in the menus that come up after you have launched MATLAB. A.1 Computer Setup for MATLAB
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.

This note was uploaded on 12/26/2011 for the course ME 365 taught by Professor Merkle during the Fall '07 term at Purdue.

Page1 / 32

matlab_instructions - ME365 MATLAB Introduction Notes...

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