Openfig+hold on
Mostrar comentarios más antiguos
I want to open saved .fig files and hold on the same plot. But it always open on a new figure and ignores the hold on function.
Below is code Im using-
for i=1:length(percent)
figaddress = strcat(num2str(percent(i)),'_percent\Pushover_LS.fig');
P_fig(i)= openfig(figaddress,'visible');
hold on
grid off
end
Respuesta aceptada
Más respuestas (1)
DGM
el 28 de Jun. de 2022
1 voto
3 comentarios
Walter Roberson
el 28 de Jun. de 2022
You cannot merge figures by using hold. You would need to openfig and locate the axes and copyobj the contents of the axes to the output axes. And somehow you would have to decide what the axes limits and tick positions and tick labels and xlabel and ylabel and colormap should be.
Devang Bipinchandra Lad
el 29 de Jun. de 2022
Devang Bipinchandra Lad
el 29 de Jun. de 2022
Categorías
Más información sobre Subplots 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!