数学建模——Matlab画散点图

scatter

x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);  
scatter(x,y)

在这里插入图片描述


plot

x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);  
plot(x,y,'o')

在这里插入图片描述


posted @ 2020-09-01 12:34  蒟蒻颖  阅读(754)  评论(0编辑  收藏  举报