Ch5_9 - Next Previous Click to edit Master subtitle style...

Info iconThis preview shows pages 1–4. 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
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Next Previous Click to edit Master subtitle style Section 5.9: Formatted Output Section 5.9: Formatted Output 11 Section 5.9: Formatted Output Using the fprintf function An map.m example Next Previous Section 5.9: Formatted Output Section 5.9: Formatted Output 22 These are the first few lines of an m-file map.m created in MatLab using "File""New""m-file" The program is a mapping routine that: plots points on a map determines the distance between two chosen points We will go through this program line by line to demonstrate: formatted output, the use of if blocks, and .. a few other things Program name is map.m There are a lot of comments (green text following the % signs) to help guide you Formatted output: map.m example Next Previous Section 5.9: Formatted Output Section 5.9: Formatted Output 33 The : is a wild card character (: , 2) means load all numbers in second column of all the rows Those are the values of x We then load y -- all numbers in...
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 / 9

Ch5_9 - Next Previous Click to edit Master subtitle style...

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