how to plot all the results of for loop in one figure on same axis?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Shabnam Sulthana Mohamed Isaque
el 27 de Ag. de 2019
Editada: Shabnam Sulthana Mohamed Isaque
el 27 de Ag. de 2019
Hello all,
i'm d i am trying to plot a beam bending on a time step in a same graph. The results of plot are in for loop. when i am plotting separate windows are opened for each iteration. is it possible to plot them on the same graph to show the variation in bending? can anyone help me how to do it.
for i = 1:n where n = 21
..............
bending = delp(1,:)
figure();hold on;
plot(-bending)
end
0 comentarios
Respuestas (1)
Joel Handy
el 27 de Ag. de 2019
Just move the figure(); command to before the for loop.
0 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D Plots 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!