Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Matlab 的数组中有一个数据集和一个点。
我想看看新点相对于先前数据的位置。
我目前正在使用以下方法绘制数组:
PreviousPoints=sort(PreviousPoints); plot(PreviousPoints);
其输出是一个图表,我想向它们添加一个点并使其可见。
如果你有什么办法让我知道
plot(1:length(PreviousPoints), PreviousPoints, newx, newy)
或者
plot(PreviousPoints) hold on plot(newPt) hold off
(hold on在你转动它之前,会一直把东西放在一起off)
hold on
off