![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/181223/image.png)
Polarplot with negative theta display
22 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposta accettata
Akira Agata
il 11 Apr 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';
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/181223/image.png)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Polar Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!