Openfig+hold on
古いコメントを表示
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
採用された回答
その他の回答 (1 件)
DGM
2022 年 6 月 28 日
1 投票
3 件のコメント
Walter Roberson
2022 年 6 月 28 日
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
2022 年 6 月 29 日
Devang Bipinchandra Lad
2022 年 6 月 29 日
カテゴリ
ヘルプ センター および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!