Enge Matlab Notes

Enge Matlab Notes - Virginia Tech, Department of...

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

View Full Document Right Arrow Icon
Virginia Tech, Department of Engineering Education Fall 2004 Page 1 of 23 Copyright J.C. Malzahn Kampe, 2002, 2003, 2004 _____________________________________________ EngE MATLAB Basics 1 (Version 7.0, Release 14) MATLAB is a powerful tool and, through the course of your Virginia Tech engineering education, you will use it often – from first-year EngE and MATH classes to later courses on programming, crystal structure, signal and image processing, and control design, to name a few! So let’s get started and set things up so that if, along the way, you choose to upgrade to a new release of MATLAB, you won’t lose your old MATLAB files during an “uninstall” operation. The first thing to do is to create a new folder on your C drive to which you should save all the MATLAB files that you create. To do so, double left click on the My Computer icon on your desktop and then open the C drive. Under the File menu, select New and then Folder. A new folder will appear in the C drive window; it will be highlighted and cleverly named “New Folder.” Change the name of the folder to MyMATLAB. Now close the C drive window. Later, this document will show you how to set things up in MATLAB so that the default location of files you save will be the MyMATLAB folder and so that MATLAB will automatically search the MyMATLAB directory when you enter a command to execute a file. At the end of each MATLAB work session, however, you should create a back-up copy of your MyMATLAB folder on something external to your computer (e.g., a CD or a flash disk) so that your work is preserved even if your machine is compromised by a virus or crashes. At this point, we should make life easier by adopting a shorthand to use in this document. In our shorthand, a sequence of operations like “Under the File menu, select New and then Folder” will be denoted as follows. File ! New ! Folder Also, because in just a few paragraphs you should open MATLAB and enter commands to try things for yourself, we will use the MATLAB user prompt symbol ( >> ) and Courier font to indicate MATLAB commands that you should enter. Here is an example. >> speed = 55; Now, there will be times in this document when something about an entered command should be clarified, and often it is easiest to add a clarifying comment right after the command. So, if you see a percent sign followed by some words, you should understand that the percent sign and what follows it are not part of the command. So, for >> speed = 55; % the units here are miles per hour the >> speed = 55;
Background image of page 1

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

View Full DocumentRight Arrow Icon
Virginia Tech, Department of Engineering Education Fall 2004 Page 2 of 23 Copyright J.C. Malzahn Kampe, 2002, 2003, 2004 _____________________________________________ part is the MATLAB command, and the % the units here are miles per hour portion is just a comment to clarify something about the command (here, the units). Okay, back to MATLAB.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/19/2008 for the course ENGE 1114 taught by Professor Twknott during the Spring '06 term at Virginia Tech.

Page1 / 23

Enge Matlab Notes - Virginia Tech, Department of...

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