想用matlab画个散点图。随时间变化x,y,z的波动情况。t为横轴。。。。求指点

如题所述

第1个回答  2013-04-17
t = 0:.1:2*pi;
d(:,1) = sin(t);
d(:,2) = cos(t);
d(:,3) = sin(t).*cos(t);
plot(t,d)
legend('sin(t)','cos(t)','sin(t)cos(t)');
hold on;
for k = 1:length(t)
plot(t(k),d(k,:),'ko');
pause(0.5);
end;
hold off;本回答被提问者和网友采纳
第2个回答  2013-04-17
这种情况你需要的是动画,通过动画体点的位置变化,散点图不直观
相似回答