MATLAB Answers

Changing the radial range in a polar plot

4 views (last 30 days)
AP
AP on 27 Feb 2014
Commented: darova on 18 Sep 2019
Dear All,
I would like to change the radial range of a polar plot. How can I change the following plot such that radius range is for example 0.3 to 0.4 instead of 0.0 to 0.5?
t = 0 : .01 : 2 * pi;
polar(t, sin(2 * t) .* cos(2 * t), '--r');
Thanks!

  0 Comments

Sign in to comment.

Answers (1)

Kyle Rocha-Brownell
Kyle Rocha-Brownell on 18 Sep 2019
Edited: Kyle Rocha-Brownell on 18 Sep 2019
For future googlers,
After polar(...),
rlim([.3 .5])

  1 Comment

darova
darova on 18 Sep 2019
Look also HERE if you don't have rlim() function

Sign in to comment.

Sign in to answer this question.


Translated by