polar plot to many circles

4 visualizaciones (últimos 30 días)
cheechoo
cheechoo el 16 de Sept. de 2016
Comentada: cheechoo el 20 de Sept. de 2016
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 comentarios
Henry Giddens
Henry Giddens el 19 de Sept. de 2016
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 el 20 de Sept. de 2016
works great, thanks a lot. had some mathemetical problems with transformation

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Polar Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by