Plotting combined and separated graphs for nested for loops
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Abhinav Sanjay Bairathi
el 1 de Dic. de 2021
Comentada: Abhinav Sanjay Bairathi
el 1 de Dic. de 2021
Hi! I wanna plot multiple graphs that combine information from the first for loop but make a new plot for the second for loop
For example:
for n = 2:10
for j = 1:10
plot(x,y(:,n,j));
end
end
I'd like it to combine the graphs for j but seperate it for n
Any help is appreciated!
Thank you!
0 comentarios
Respuesta aceptada
Chunru
el 1 de Dic. de 2021
for n = 2:10
figure; hold on
for j = 1:10
plot(x,y(:,n,j));
end
hold off
end
Más respuestas (0)
Ver también
Categorías
Más información sobre Title 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!