How can I create a polar plot from 2d matrix

5 visualizaciones (últimos 30 días)
abu
abu el 21 de Sept. de 2016
Comentada: Star Strider el 28 de Sept. de 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

Respuesta aceptada

Star Strider
Star Strider el 21 de Sept. de 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 comentarios
Star Strider
Star Strider el 28 de Sept. de 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 el 28 de Sept. de 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

Iniciar sesión para comentar.

Más respuestas (1)

abu
abu el 28 de Sept. de 2016
I used polar function and it works. many thanks

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