How can I use the compass function, changing the vector position during the time?
古いコメントを表示
Hi. I'm using serial port to collect data and I need to plot it using the fucntion compass. For each data sample, I need to update the plot using compass (arrows emanating from the origin). I'm using this code now:
axes(handles.axes3)
h=compass(eletrodo1, eletrodo2);
hold on;
drawnow;
The problem is, when I update the plot with new data, the past data still remains on the plot. I don't know how to clean the plot for each new data point. Can someone help me? Thank you.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Vector Fields についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!