How can I create a polar plot from 2d matrix

5 Ansichten (letzte 30 Tage)
abu
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

Akzeptierte Antwort

Star Strider
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
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
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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

abu
abu am 28 Sep. 2016
I used polar function and it works. many thanks

Kategorien

Mehr zu Polar Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by