www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ConvertFromDegreesToRadiansBeforePlottingExample.m
%% Convert from Degrees to Radians Before Plotting % Create data where the angle values are in degrees. Since |polarscatter| % requires angle values in radians, convert the values to radians before % plotting using |deg2rad|. th = linspace(0,360,50); r = 0.005*th/10; th_radians = deg2rad(th); polarscatter(th_radians,r)