admin管理员组

文章数量:1122852

Matlab画图plot(x1,y1,‘ro‘,x1,y1)

Matlab画图plot(x1,y1,‘ro’,x1,y1)

x1,y1,‘ro’, 红色o型画点(x1,y1)
x1,y1 实线连接x1,y1

示例1:
x1 = linspace(-2pi,2pi);
y1 = sin(x);
plot(x1,y1,‘ro’);

示例2:
x1 = linspace(-2pi,2pi);
y1 = sin(x);
plot(x1,y1,‘ro’,x1,y1);

示例3:
x1 = linspace(-2pi,2pi);
y1 = sin(x);
plot(x1,y1,‘r’);

示例4:
x1 = linspace(-2pi,2pi);
y1 = sin(x);
plot(x1,y1);

本文标签: Matlab画图plot(x1y1rox1y1)