Scatter plotting in real time
23 次查看(过去 30 天)
显示 更早的评论
Hello,
I am acquiring data from a sensor and am trying to scatter plot it in real time. My code goes like this:
f=figure
while datenum(clock)<endTime
message=judp('RECEIVE',40001,264);
.
. %parse message
.
Now I have an array 'a' with the data needed to plot.
for i=1:sizeof(a)
f=scatter3(a(i,1),a(i,2),a(i,3),'*')
hold on
end
The array 'a' keeps growing in size and my current code always creates a new figure window for each update of the plot. So, I end up with 20 graph windows rather than 1 continuously updating graph.
Is it possible to update the graph in real time as the data keeps coming in? I also don't want multiple figure windows opening up.
Thanks for any help.
Pranav
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!