www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ControlNumberOfDecimalsForrAxisTickLabelsExample.m
%% Control Number of Decimals for _r_-Axis Tick Labels % Display the _r_-axis tick labels with two decimal places. Control the % decimal places by passing |rtickformat| a character vector of a numeric % format that uses fixed-point notation for the conversion character and a % precision value of 2. theta = 0:0.01:2*pi; rho = 50*sin(2*theta); polarplot(theta,rho) rtickformat('%.2f')