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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s