Polarplot with negative theta display

24 visualizaciones (últimos 30 días)
Shan  Chu
Shan Chu el 4 de Abr. de 2018
Comentada: Shan Chu el 17 de Abr. de 2018
Hi everyone, I have used the polarplot function in Matlab. The theta axis by default will be from 0 to 360 degree. But I would like to display theta from -150 to 180, similar to the attached figure. Could you please help? Thanks

Respuesta aceptada

Akira Agata
Akira Agata el 11 de Abr. de 2018
You can plot it by tuning axes properties, like:
% Sample data
theta = deg2rad(-150:30:180);
rho = 10*rand(size(theta));
% Polar plot with [-180 180] degree
polarplot(theta,rho)
ax = gca;
ax.ThetaLim = [-180 180];
ax.ThetaZeroLocation = 'top';
ax.ThetaDir = 'clockwise';

Más respuestas (0)

Categorías

Más información sobre Polar Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by