Hi,
I have a . txt with 4 colums : time (t), x, y, z which is the x, y, z position of an object according to the time.
I would like to plot the 3D position of this object.
% Data (10)
t= [0,5138199000000001,014097000000001,530278000000002,045898000000002,546345000000003,118796000000003,629822000000004,144558000000004,652010000000005,15476100000000]x=[0,01449186000000000,01970004000000000,02121376000000000,00879137000000000-0,0430479900000000-0,173410000000000-0,293167400000000-0,315159100000000-0,306979900000000-0,291601800000000]y=[0,06244665000000000,06022314000000000,06049357000000000,0402826200000000-0,002444535000000000,01346617000000000,05355833000000000,06059514000000000,08406188000000000,0692208900000000]z=[0,07653801000000000,08903388000000000,1044884000000000,1223715000000000,1812033000000000,0617616700000000-0,0800978800000000-0,174215400000000-0,175980100000000-0,137890000000000]% Subplot of the deplacement
figure;subplot(1,3,1); plot(t,x); title ('X to time');subplot(1,3,2);plot(t,y); title ('Y to time');subplot(1,3,3);plot(t,z); title ('Z to time');% 3 plots in 1 figure
figure;plot3(x,y,z)hold onscatter3(x,y,z,[],t,'filled')box ongrid on
Can I make another plot, more representative of the deplacement or not?
Thank you very much.
AL
Best Answer