Clearing Subplots & getting the original view
이전 댓글 표시
Hi,
In my GUI, on pushing a button, I split one "axes" (handle: plot) into 3 subplots (ax1, ax2, ax3); & once I have done this, I clear it using the commands: cla(ax1);cla(ax2);cla(ax3).
But if I click on the pushbutton again; MATLAB crashes.
I tried debugging, it gives an error when executing the axes handle: axes(handles.plot);
Is it because the axes is still divided into 3 subplots???
Because when I tried clearing the axes using: cla(handles.plot, 'reset'); I get an error: Bad Handle.
Is there a way to clear subplots and plot on that area again on clicking the pushbutton?
Or is there a way to clear the subplots by calling the tag of the parent axes?
Please advise on this.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!