Adding several plots to one specific (not current) figure
Mostrar comentarios más antiguos
The code below is simplified. But I struggle to find out how I can update a specific figure (maybe by the specific name?).
I want to add some x,y plots to one specific figure.
for p=1:length(vector)
%above this pointthere are several plots and many figures made both inside this for loop and outside
figure('Name',figurnavn1)
hold on
plot(x,y)
end
end
%below this point there are several plots and many figures made both inside this for loop and outside
Respuesta aceptada
Más respuestas (2)
Mathieu NOE
el 31 de Ag. de 2022
Movida: Image Analyst
el 31 de Ag. de 2022
0 votos
1 comentario
Ingvald Bårdsen
el 31 de Ag. de 2022
Ingvald Bårdsen
el 31 de Ag. de 2022
2 comentarios
Mathieu NOE
el 31 de Ag. de 2022
hello again
wonder if there is another way to solve your problem
maybe it's a bit the hammer solution but why not put your data in a structure (or simply an array if that can suffice) and each time you add new data to the previous set , simply plot again the whole thing
sure not the most elegant manner but...
Ingvald Bårdsen
el 1 de Sept. de 2022
Categorías
Más información sobre Cell Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!