2012-05-11 71 views
2

我一直在寫一個Matlab函數,讀取一個文件並繪製其三維圖形,三個投影。在Matlab中,如何更改繪圖間隔?

在提供的四個圖形中,它繪製所有數據,並從這些數據點中確定x,y,z間隔。 我想改變這些情節的時間間隔,但我不知道該怎麼做。

參見該圖中: enter image description here

在這種情況下我的問題是,第四圖像(zy平面)上我想看看在y個間隔[1 ... 0],而不是viewin '在區間[1 ... 0.4]。

這裏是我的陰謀計劃代碼在我的四個第4圖像:

subplot(2,2,4) 
    plot3(FNrate, FPrate, tau); 
    view(-90,0); % we rotates the figure from standard to -90° (270°); 
    title('zy plane'); 
    xlabel('x = FP (AP) rate'), ylabel('y = FN (AR) rate'), zlabel('z = tau'), grid on 

我怎麼能這樣做?

非常感謝

回答

1
ylim([0 1]) 

應該做的伎倆,查找文檔here

+0

大,它的作品!超級快! :-D –

+0

然後請按照此處所述將回答標記爲已接受:http://meta.stackexchange.com/a/5235/185265 –