Borrar filtros
Borrar filtros

How to plot a circle of some radius on a polar plot ?

44 visualizaciones (últimos 30 días)
L K
L K el 18 de Mzo. de 2017
Editada: Ron Beck el 2 de Mzo. de 2018
eg. i want a small circle with origin as center of some radius...ON the POLAR plot

Respuesta aceptada

Walter Roberson
Walter Roberson el 18 de Mzo. de 2017
th = linspace(0,2*pi,50);
r = 10;
polar(th,r+zeros(size(th)))
  2 comentarios
L K
L K el 18 de Mzo. de 2017
thanx :)
Ron Beck
Ron Beck el 2 de Mzo. de 2018
Editada: Ron Beck el 2 de Mzo. de 2018
I have used this script and it works (changed polar to polarPlot) but can't run it as a function. Any ideas?

Iniciar sesión para comentar.

Más respuestas (1)

Gabriel Malagon Carvajal
Gabriel Malagon Carvajal el 9 de Sept. de 2017
When is not center in the origen?
  1 comentario
Walter Roberson
Walter Roberson el 9 de Sept. de 2017
%need centres for demo purposes
xc = randn() * 5; yc = randn() * 5;
%the work
th = linspace(0,2*pi,50);
r = 10;
[x,y] = pol2cart(th,r);
[th1, r1] = cart2pol( x+xc, y+yc );
polar(th1, r1);

Iniciar sesión para comentar.

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