www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyRadialAxisLimitsExample.m

    %% Specify r-Axis Limits
% Create a polar plot and change the _r_-axis limits.

theta = 0:0.01:2*pi;
rho = sin(2*theta).*cos(2*theta);
polarplot(theta,rho)
rlim([0 1])

%%
% Set the limits back to the original values. 
rlim('auto')