Ch5_5 - Next Previous Section 5.5: Writing M-Files Section...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: Next Previous Section 5.5: Writing M-Files Section 5.5: Writing M-Files 11 Files have the extension .m Thats why we call them m files They are text files and can be read in any text editor. MATLAB has a built in text editor. Section 5.5: Writing M-Files Next Previous Section 5.5: Writing M-Files Section 5.5: Writing M-Files 22 First you must tell MatLab where to look for your m-files current directory browse to new directory new current directory M-files (programs) Next Previous Section 5.5: Writing M-Files Section 5.5: Writing M-Files 33 File New M-file Editor Debugger window appears Creating an M-file Next Previous Section 5.5: Writing M-Files Section 5.5: Writing M-Files 44 In the Editor, enter statements to create two arrays: x and y. Echoprint them to the screen (no semicolons) File Save xandy.m in your matlabfiles folder To run program: type xandy at command window prompt Entering statements and running an M-file Next Previous Section 5.5: Writing M-Files...
View Full Document

This note was uploaded on 05/19/2008 for the course ENGR 25 taught by Professor All during the Spring '08 term at Lehigh University .

Page1 / 12

Ch5_5 - Next Previous Section 5.5: Writing M-Files Section...

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