2017-01-22 8 views
2

Matlab roseを変更する方法を知っている人は 0からpi/2(0-90º)の範囲しか表示しないように機能しますか?MATLABのローズプロットの表示部分を調整します

どこにも見つからないようです。 xlimylim

+0

はい、私は唯一の1/4を示したい、または1/2 .. 。円全体(0-360度)ではありません。 – ana

答えて

2

あなたを動作するようには思えませんそれが唯一の第一象限を示していることを、このような表示を調整するために、親axesXLimYLimプロパティを使用することができます。

hax = axes(); 
theta = [0.4 1.4 3.1 2.3 0.4 2.5 3.9 2.8 2.3 1.6 4.6 4.5 6.1 3.9 5.1]; 
rose(hax, theta, 10) 

% Set the x and y limits to show only the first quadrant 
hax.XLim = [0 hax.XLim(2)]; 
hax.YLim = [0 hax.YLim(2)]; 

enter image description here

あなたは(180度)Piに0をしたい場合は代わりに

hax = axes(); 
rose(hax, theta, 10) 

% Set only the y limits 
hax.YLim = [0 hax.YLim(2)]; 

enter image description here

+0

これは動作します!どうもありがとう!! – ana

関連する問題