3D plotting of Excel Data
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nathan Churcher
am 29 Okt. 2019
Beantwortet: darova
am 29 Okt. 2019
I have this centroid- data based on time of the movement of an object and would want to plot in 3D space the centroid locations to show the movement of the object in 3D space. I would like to plot it out 3 points at a time(i.e at any time, there should be (n-1), n and (n+1)) but I'm not sure how to go about this, any help? I have attached the .xlsx file for reference.
0 Kommentare
Akzeptierte Antwort
darova
am 29 Okt. 2019
Use plot and pause to animate the movement
plot3(x,y,z)
hold on
for i = 2:length(x)-1
ii = i-1:i+1;
h = plot3(x(ii),y(ii),z(ii),'.r'); % draw some particles
pause(0.5) % wait a minute
delete(h) % delete
end
hold off
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graphics Object Identification finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!