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

Info icon This 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.
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern