How to plot a circle of some radius on a polar plot ?
44 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
L K
am 18 Mär. 2017
Bearbeitet: Ron Beck
am 2 Mär. 2018
eg. i want a small circle with origin as center of some radius...ON the POLAR plot
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 18 Mär. 2017
th = linspace(0,2*pi,50);
r = 10;
polar(th,r+zeros(size(th)))
2 Kommentare
Weitere Antworten (1)
Gabriel Malagon Carvajal
am 9 Sep. 2017
When is not center in the origen?
1 Kommentar
Walter Roberson
am 9 Sep. 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);
Siehe auch
Kategorien
Mehr zu Polar Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!