hello,
having some problems with polarplot.
data = importdata('test.txt');
x_cart=data(:,1);
y_cart=data(:,2);
[theta,rho] = cart2pol(x_cart,y_cart);
theta_deg=rad2deg(theta)
polar(theta_deg,rho);
my dataset is an 3600x2 matrix with cartesian x and y-values coming from a roudness-measurement. so the distance between to measured points is 0,1° in the plot more circles are shown, not only once (what it should)... whats the mistake? i apprehend something with the cart2pol is wrong...
i also add the dataset and a screenshot.
thanks for your help!

댓글 수: 4

Henry Giddens
Henry Giddens 2016년 9월 16일
Unless I am missing something, 'polar' and 'polarplot' require the input angle in radians rather than degrees...
cheechoo
cheechoo 2016년 9월 16일
편집: cheechoo 2016년 9월 16일
so:
data = importdata('testdatensatz.txt');
x_cart=data(:,1);
y_cart=data(:,2);
[theta,rho] = cart2pol(x_cart,y_cart);
theta_rad=deg2rad(theta)
polar(theta_rad,rho);
that gives me following curves?!
<<
>>
Try:
data = importdata('testdatensatz.txt');
x_cart=data(:,1);
y_cart=data(:,2);
[theta,rho] = cart2pol(x_cart,y_cart);
polar(theta,rho);
cheechoo
cheechoo 2016년 9월 20일
works great, thanks a lot. had some mathemetical problems with transformation

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

태그

질문:

2016년 9월 16일

댓글:

2016년 9월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by