I have read and successfully converted the default degree measure to radians for a polarplot. The same procedure does not appear to work with ezpolar. How do you get theta marked in radians for ezplot?
This code has the desired effect:
theta=linspace(0, 2*pi, 100);rho=1+3/2*sin(2*theta);polarplot(theta, rho)ax=gca;ax.ThetaAxisUnits='radians';
This code leaves the theta markings in degrees
ezpolar(@(t) 1+3/2*sin(2*t), [0, 2*pi])ax=gca;ax.ThetaAxisUnits='radians'
Prefacing the latter with polaraxes() gets both units.
Why, why, why is the expected input for both polarplot and ezpolar in radians (seems sensible as a calculus instructor), but the default theta marking in degrees???
Best Answer