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!