Openfig+hold on
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
DGM
am 28 Jun. 2022
1 Stimme
3 Kommentare
Walter Roberson
am 28 Jun. 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
am 29 Jun. 2022
Devang Bipinchandra Lad
am 29 Jun. 2022
Kategorien
Mehr zu Subplots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!