SUNY Geneseo Department of Computer Science


Plotting, Day 1

Monday, February 17

CSci 120, Spring 2014
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture

Misc

Online notes delayed by disk space problems on Web server

Questions?

Characters in 3rd argument to plot?

    x = linspace( -5, 5, 101);
    y = x .^ 2;
    plot(x,y)

 

Solid blue parabola

    plot(x,y,'r')

Solid red parabola

    plot(x,y,'m--')

Dashed magenta parabola

Plotting Lesson

Smooth curves in computer graphics are just lots of very short straight line segments.


Next Lecture