MAE 100 Lab 2

MAE 100 Lab 2 - KenitaDoss February6,2009

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

View Full Document Right Arrow Icon
Kenita Doss February 6, 2009
Background image of page 1

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

View Full DocumentRight Arrow Icon
MATLAB can be used as a programming language. A program is a set of ordered instructions for a  computer to perform. Writing a program is convenient because it can be  edited (corrected and/or changed) and executed  many times.
Background image of page 2
For MATLAB to locate and run a script, it must be  saved with a  .m  extension, called an “M-file.” From the MATLAB main menu, select  File>New>M-file , or click on the blank page icon  (as shown).
Background image of page 3

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

View Full DocumentRight Arrow Icon
When a new M-file is opened, the Editor Window  appears (as shown) and you can begin to type your  program.
Background image of page 4
Before you can run the program, you need to save  and name it.  Select  File>Save As  from the editor main menu and enter  a file name. There is no need to include the  .m  extension;  MATLAB will automatically add this. It is important that the name of your program 
Background image of page 5

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

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

This note was uploaded on 02/22/2011 for the course MAE 100 taught by Professor Staff during the Spring '11 term at ASU.

Page1 / 14

MAE 100 Lab 2 - KenitaDoss February6,2009

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

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