How can I create a polar plot from 2d matrix
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
abu
am 21 Sep. 2016
Kommentiert: Star Strider
am 28 Sep. 2016
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 Kommentare
Akzeptierte Antwort
Star Strider
am 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 Kommentare
Star Strider
am 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
am 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
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Polar Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!