Matlab drawing plot(x1,y1,'ro',x1,y1)

Matlab drawing plot(x1,y1,'ro',x1,y1)

x1,y1,'ro', red o-shaped dot (x1,y1)
x1,y1 solid line connecting x1,y1

Example 1:
x1 = linspace(-2 pi,2 pi);
y1 = sin(x);
plot(x1,y1,'ro');
insert image description here
Example 2:
x1 = linspace(-2 pi,2 pi);
y1 = sin(x);
plot(x1,y1,'ro',x1,y1);
insert image description here
Example 3:
x1 = linspace(-2 pi,2 pi);
y1 = sin(x);
plot(x1,y1,'r ');
insert image description here
Example 4:
x1 = linspace(-2 pi,2 pi);
y1 = sin(x);
plot(x1,y1);
insert image description here

Guess you like

Origin blog.csdn.net/qq_41238751/article/details/123824909