Matlab: Changing symbol or line types

The symbol or line type for the data can by changed by passing an optional third argument to the plot command. For example

	>> plot(x,y,'o');

plots data in the x and y vectors using circles drawn in the default color (yellow), and

	>> plot(x,y,'r:');

plots data in the x and y vectors by connecting each pair of points with a red dashed line.

Advertisements