www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyRAxisTickLabelsForSpecificPolarAxesExample.m
%% Specify r-Axis Tick Labels for Specific Polar Axes % Create a polar plot and assign the polar axes object to the variable % |pax|. Ensure that |rticks| and |rticklabels| affect the polar axes you % just created by specifying |pax| as the first input argument to the % functions. theta = 0:0.01:2*pi; rho = 50*sin(2*theta); polarplot(theta,rho) pax = gca; rticks(pax,[10 25 50]) rticklabels(pax,{'r = 10','r = 25','r = 50'})