matlab GUI使用subplot畫圖后如何清空坐標軸


matlab GUI使用subplot畫圖后如何清空坐標軸:

假設有四個子坐標,分別為h1,h2,h3,h4

h = 0;
if ishandle(h1)
    delete(h1);
    h = 1;
end
if ishandle(h2)
    delete(h2);
    h = 1;
end
if ishandle(h3)
    delete(h3);
    h = 1;
end
if ishandle(h4)
    delete(h4);
    h1 = 1;
end
if h
    axes('parent',handles.uipanel1)  %重建一個axes
end

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM