13 views (last 30 days)

Show older comments

Samuel Vergara
on 30 Jun 2016

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,

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

Start Hunting!