matlab中GUI模塊的AXES控件的應(yīng)用
我在matlab中做了一個(gè)GUI的模塊,這里面有兩個(gè)AXES控件,并使用plotyy函數(shù)畫圖。這樣該如何分別激活這兩個(gè)控件?
注:我使用axes(handles.axes1)調(diào)用以后,原來的圖形就會(huì)發(fā)生錯(cuò)誤,只剩下一條曲線了。這種情況該如何解決?具體情況見上傳的兩站照片。

用plotyy的畫圖結(jié)果

調(diào)用axes(handles.axes1)后的圖形
返回小木蟲查看更多
今日熱帖
京公網(wǎng)安備 11010802022153號(hào)
[AX,H1,H2] = plotyy(...) returns the handles of the two axes created in AX and the handles of the graphics objects from each plot in H1 and H2. AX(1) is the left axes and AX(2) is the right axes.
所以你用[AX,H1,H2] = plotyy(x,y,x,z) 就可以了
AX出來就是兩個(gè)axes的句柄
axes(AX(1))顯示左邊的
再加個(gè)axes(AX(2))顯示右邊的,