How can I create a polar plot from 2d matrix
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi all, I have measured the thickness of the liquid around the pipe at different angles (60 measurement points circumferentially). Therefore I have 60x1 matrix. My question is: how can I draw a polar plot showing the variation of the thickness around the pipe (at 60 points). The pipe diameter is 125 mm and we are only interested in drawing the thickness variations around the wall of the pipe. Any suggestions please? Regards
0 commentaires
Réponse acceptée
Star Strider
le 21 Sep 2016
I don’t have your data, so I cannot experiment with it. If you have it in angle and radius units, you can use the polar plot function, or to plot it in Cartesian coordinates, the pol2cart function to convert it first.
6 commentaires
Star Strider
le 28 Sep 2016
abu’s ‘Answer’ moved here:
Thank you. I have tried your code, but I got the following error;
Undefined function or variable 'polarplot'. the version I used is 2015.
any suggestion!
Star Strider
le 28 Sep 2016
Yes. Substitute polar for polarplot in figure(1).
Without polarplot, you will not be able to plot all of your vectors in the same call, so the code for figure(2) changes to:
figure(2)
polar(a, Frames(:,1)+125)
hold on
for k1 = 2:size(Frames,2)
polar(a, Frames(:,k1)+125)
end
hold off
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Polar Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!