2012-11-18 217 views
2

如何在Matlab中使用polar()命令繪製直線?極座標圖中的直線matlab

例子:(考慮θ在度)

rho1 = 50;   rho2 = 60; 
theta1 = 45;  theta2 = 60; 

syntax: polar(theta,rho); 
+1

爲什麼不使用直線定期情節? –

+0

其中[metric](http://en.wikipedia.org/wiki/Metric_tensor)是否在考慮直線? ;) – Acorbe

+0

@Acorbe度量是相同的(歐幾里得),而不管軸是笛卡兒還是極座標。直線是一條直線,無論是否與笛卡兒或極軸重疊。 –

回答

2

就像這樣:

% Using your definitions: 
rho=[rho1 rho2]; 
theta=[theta1 theta2]; 
polar(theta,rho); 

enter image description here