lab6tasks

lab6tasks - ENGR 12600 Fall 2008 Laboratory 6 Task 1...

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

View Full Document Right Arrow Icon
ENGR 12600 – Fall 2008 Task 1 Laboratory 6 Task 1 – Plotting Refresher (Estimated Time = 20 minutes) Through this exercise, you will review how to merge graphs as you overlay one curve on the plot of another curve. The FCC keeps track of revenues from different types of calls. The data collected from 1993 to 1999 are shown in the table to the right. 1. Open your probtemplate.m and resave your file as lab6task1a.m . 2. Under the Input section, create column vectors for the data shown. 3. Under the Output section, use the disp command to display the three column vectors; for example: disp( 'The in-state toll revenue for each year is:' ) disp(in_state_toll) % This in_state_toll is vector name 4. Under the Output section, plot the in-state toll revenue related to the year. Plot the data as red squares. Remember to include a title and axis labels. 5. Place the command figure(1) immediately before your commands used to generate the in- state toll revenue plot. (Use help to learn about the figure command.) 6. Create a second plot. Plot the out-of-state toll revenue related to the year. a. Below your in-state plotting commands, use the command figure(2) to start a second section of plotting commands. b. Create the out-of-state revenue plot. Plot the data as blue circles. Remember to include a title and axis labels. 7. Re-save your script as lab6task1b.m . 8. In your script file, delete the figure(2) command and replace it with the hold on command. 9. Save your script and run. What has happened to your plots? 10. Run your script a second time. Does anything odd happen? a. Always toggle the hold to "off" after completing a figure. This action prevents errors when re-running a script. Write the command hold off at the very end of your script and re-save. b. Also, you should note that the last set of title, xlabel, and ylabel commands are the visible labels on your figure. Year
Background image of page 1

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

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

This note was uploaded on 02/12/2012 for the course ENGR 126 taught by Professor Oakes during the Fall '08 term at Purdue.

Page1 / 4

lab6tasks - ENGR 12600 Fall 2008 Laboratory 6 Task 1...

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

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