how could i animate this?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
HADIMARGO
el 17 de Dic. de 2018
Comentada: madhan ravi
el 18 de Dic. de 2018
x=linspace(-5,5,1000);
a_n=2;
b_n=3;
l=10;
for n=1:1:10
for t=0:1:10
y=a_n*cos((n*pi*t)/l)+b_n*sin((n*pi*t)/l)*sin((n*pi*x)/l);
end
end
u=y;
plot(x,u)
3 comentarios
madhan ravi
el 18 de Dic. de 2018
you need to know that there are several curves created in each loop iteration but you overwrite all the values and only the end values are saved in the last iteration
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Animation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!