How to create an animation between 3 points

Hi! I want to make animation of a line between 3 points. Let's say point 1 is (0,0,0) and point 2 is (5,4,1). How can I create an animate line between them and plot the final point(b) in the plot as well?

Respuestas (2)

darova
darova el 23 de Mayo de 2021
See this example
x = 0:10;
y = sin(x);
for i = 1:lengh(x)
plot(x(1:i),y(1:i))
pause(0.2)
end

Categorías

Más información sobre Animation en Centro de ayuda y File Exchange.

Productos

Versión

R2020b

Etiquetas

Preguntada:

el 22 de Mayo de 2021

Respondida:

el 23 de Mayo de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by