Can anyone help me in my problem ? please check the figure i have attached...

2 ビュー (過去 30 日間)
L K
L K 2016 年 11 月 18 日
コメント済み: L K 2016 年 11 月 18 日
i have plotted the points on polar graph, but now i want to get a straight perfect line on the 30 degree(right now it is like a curve)
i want all the points to lie on that 30 degree line,
following is the code: theta = 0:0.1:0.5; %rho = sin(2*theta).*cos(2*theta); %rho=zeros(size(theta)); rho=0:0.1:0.5; figure polar(theta,rho,'-o')
please tell me the changes to be done to get the line
  1 件のコメント
L K
L K 2016 年 11 月 18 日
sorry forgot to attach image previously, Here is the image

サインインしてコメントする。

採用された回答

KSSV
KSSV 2016 年 11 月 18 日
theta = 0:0.1:0.5; %
rho=0:0.1:0.5;
theta = 30*pi/180*ones(size(rho)) ;
figure
polar(theta,rho,'-o')

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by