[英]Connect Dots in the Matlab plot
我在Matlab图中绘制点。 在绘制点时,我想连接点。 我不确定该怎么做。 这是使用的代码段:
for index=2:length(x1(1:100))
hold on;
plot(x1(index), x2(index), 'r*', 'markers',3);
end
您是否考虑过绘制最后一个点和到上一个点的线:
for index=2:length(x1(1:100))
hold on;
plot(x1(index + (-1:0) ), x2(index + (-1:0) ), '-*r', 'markers',3);
end
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.