plot particle movement between some fixed points in 3D

조회 수: 3 (최근 30일)
mostafa khalili
mostafa khalili 2014년 10월 4일
편집: mostafa khalili 2014년 10월 5일
i want to plot a moving particle between some predefined point.in time t (x1,y1,z1), time t+1 (x2,y2,z2) and t+2 (x3,y3,z3)).i tried with plot3 and scatter3 but still i cant see correct movement.anyone can help?thanks in advance
  댓글 수: 2
Chad Greene
Chad Greene 2014년 10월 4일
More details might help answer the question. Would it help to change the view angle, or perhaps zoom? If you're making an animation, are your axes the same in each frame, or are the axis limits automatically updating themselves in each frame, in which case little motion would be evident.
mostafa khalili
mostafa khalili 2014년 10월 4일
편집: mostafa khalili 2014년 10월 5일
Chad Greene Thanks for your comment. this code has been uploaded by Teja Muppirala before.
if true
% A = interpft(rand(1,10),1001);
B = interpft(rand(1,10),1001);
C = interpft(rand(1,10),1001);
t = 0:0.001:1;
figure
h = plot3(nan,nan,nan,'ro');
axis equal vis3d
box on
for n = 1:numel(t)
set(h,{'Xdata','Ydata','Zdata'},{A(n) B(n) C(n)});
title(t(n));
drawnow;
end
end
i want to apply my desired points but i cant define them in this structure.it seems to be easier but i dont know how should i define fixed points because i dont want them to be random.

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

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by