Create a polar surf plot with 3 measured data vectors

I would like to create a polar plot with three measured data vectors: wind direction, wind speed and last the turbulence intensity. I would like to represent these three discrete data vectors in polar coordinate on a surface with an interpolation of the turbulence intensity values. Thank you very much.

댓글 수: 2

A polarplot needs only two variables. Could you be clearer, show an example of what you want and of what you have done so far?
I have three vectors and I would like to represent these vector on a polar plot: with the first point having direction1, speed1 and intensity1. In particular I would like to represent the intensity as a color scale with a corresponding colormap.

댓글을 달려면 로그인하십시오.

답변 (1개)

Samuel Vergara
Samuel Vergara 2016년 6월 30일
It can be done. I don't know how you have your turbulency saved, so I will supose a turbulence function. Let's say that: x=wind direction y=wind speed z=turbulence(x,y)
X2=0:2*pi/n:2*pi; % direction in radians
Y2=0:(0.8/n):.8; % speed (radius)
[X,Y] = meshgrid(X2,Y2);
Z=ones(length(Y2),length(X2))
for i=1:length(X2),
for j=1:length(Y2)
Z(j,i)=turbulence(X2(i)*cos(Y2(j)), X2(i)*sin(Y2(j))]);
end
end
mesh(X.*cos(Y), X.*sin(Y), Z); % mesh or surf
I hope this helps you. Regards,

댓글 수: 5

Hi Samuel, turbulence intensity is not a function of X and Y (wind direction and speed), it is a vector of measured values for turbulence intensity. The three variables are all vectors of measured quantities. I have three vectors and I would like to represent these vector on a polar plot: with the first point having direction1, speed1 and intensity1. In particular I would like to represent the intensity as a color scale with a corresponding colormap.
Samuel Vergara
Samuel Vergara 2016년 6월 30일
편집: Samuel Vergara 2016년 6월 30일
Well, i think you don't need a mesh then. You need to plot a point for every coordinate given by X,Y,Z. See plot3 documentation. ->plot3(X,Y,Z).
I don't understand why you say polar. Are direction and speed angles? what are the dimensions of direction1, speed1 and intensity1 direction1, speed1 and intensity1 matrixs?
Regards.
I'm showing you an example of a graph I would to obtain.
in this case the graph represent a direction for a wind speed and a concentration as colormap.
something like pcolor in polar coordinates, by E. Ch3yn3t. However I need to construct the interpolation of z (concentration) values.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

질문:

2016년 6월 30일

편집:

2016년 7월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by