plotting moving data points

조회 수: 2 (최근 30일)
mamdouh aljoud
mamdouh aljoud 2019년 1월 25일
답변: Shuqiao Xie 2019년 2월 19일
I'm trying to plot a skeleton model using the coordinates of the joints.
I extracted the x,y, and z coordinates and saved them in 3 matrices.
I'm trying to plot the first row of each column then have a small pause and plot the next row of each matrix.
each row of the matrices correspond to the x,y, and z coordinates of the joints and together they make a frame.
  댓글 수: 1
Adam
Adam 2019년 1월 25일
Which part of it is causing a problem.
doc plot3
should help with this.
Though you should use the syntax that returns the handle the first time you plot and then only update the 'XData' and 'YData' on future updates to concatenate the new points, otherwise it will be slow updating.

댓글을 달려면 로그인하십시오.

답변 (1개)

Shuqiao Xie
Shuqiao Xie 2019년 2월 19일
data = randn(10, 3)
hold on
for ii = 1: length(data)
scatter3(data(ii,1),data(ii,2),data(ii,3))
pause(1)
end

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by