lab4 - CS100M Section(Lab Exercise 4 Download Eg3 1 from...

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

View Full Document Right Arrow Icon
CS100M Section (Lab) Exercise 4 Download Eg3 1 from the course website under FVL Chapters and Software . 1. [From M3.1.2 in FVL] Experiment with different line-marker format in Eg3 1 . In the command plot(x,y,[L R],[0 0],’:’) the first set of data, x and y , are plotted using the default format—solid line—while the second set of data, the points ( L ,0) and ( R ,0), are plotted according to the format specification ’:’ —a dotted line. The format specificaton is enclosed in quotation marks. Here are a few example format specifications: ’-’ for solid line, ’.’ for a dot, ’r’ for red, ’g-’ for a green solid line, and ’b+:’ for a blue dotted line with a cross marking each data point, etc. Type help plot in Matlab ’s Command Window to see a complete list of options. 2. [From M3.1.4 in FVL] Modify Eg3 1 to use the colon expression instead of the built-in function linspace to create the vector of x values. linspace allows you to specify the number of points while the colon expression allows you to specify the increment between points. Write a colon expression that
Image of page 1

Info icon This 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