**matlab中hold on 和hold off用法**

1、hold on: 使當前軸及圖形保持而不被刷新,準備接受此後將繪製的圖形,多圖共存。 2、用法說明: hold on 在當前圖的軸(座標系)中畫了一幅圖,再畫另一幅圖時,原來的圖還在,與新圖共存,都看得到 3、例子: close all x=0:2:100; y1=5*x; y2=6*x; y3=9*x; ph1=plot(x,y1,'r-'); hold on ph2=plot(x,y2
相關文章
相關標籤/搜索