Polar P Color plot of excel sheet?

1 visualización (últimos 30 días)
Zubair Ghafoor
Zubair Ghafoor el 28 de Mayo de 2020
Editada: Divyajyoti Nayak el 19 de Jun. de 2025
Hi, I have a Xlsx sheet of the data of wind with days and time.
I want to use this function "polarPcolor" for ploting, anyone here who can help me.
many thanks.

Respuesta aceptada

Divyajyoti Nayak
Divyajyoti Nayak el 18 de Jun. de 2025
Editada: Divyajyoti Nayak el 19 de Jun. de 2025
As of MATLAB R2025a, the 'surf' and 'pcolor' functions can be used to create colored plots on polar coordinates. This can be used as an alternative to the 'polarPcolor' functions from File Exchange.
Here's some sample code:
clc
clear
r = (linspace(0,100,100))';
theta = linspace(0,2*pi,100);
data = r*sin(theta);
p = polaraxes;
surf(p,data)
Here's the documentation for the 'surf' function to help you out:

Más respuestas (0)

Categorías

Más información sobre Polar Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by