wind_speed=[7,4,3,2,1,6 ; 8,6,5,4,5,9; 10,8,8,7,6,11]
wind_speed =
7 4 3 2 1 6
8 6 5 4 5 9
10 8 8 7 6 11
●
wind_direction=[120,110,150,115,117,113; 122,113,154,118,119,115; 126,117,159,121,120,117]
wind_direction =
120 110 150 115 117 113
122 113 154 118 119 115
126 117 159 121 120 117
●
latin = repmat(lat, length(height), 1);
lonin = repmat(lon, length(height), 1);
hin = repmat(height(:), 1, length(lat));
platvec = min(lat):max(lat);
plonvec = min(lon):max(lon);
[latG, lonG, hG] = meshgrid(platvec, plonvec, pheightvec);
S = scatteredInterpolant(latin(:), lonin(:), hin(:), wind_speed(:));
D = scatteredInterpolant(latin(:), lonin(:), hin(:), wind_direction(:));
quiver3(latG, lonG, hG, SG, DG, WG);
0 Comments
Sign in to comment.