i want to get contour and wind vector code

1 view (last 30 days)
young been kim
young been kim on 21 Jul 2020
This is a contour code. I would like to add this code to indicate the flow of the wind with a wind speed of 12 and a wind direction of 270 degrees. If possible, I would like to add the code contents using quiver, can you help me?
load_data = load('hs.mat');
data = struct2cell(load_data);
t_start = datenum(2016,12,01,00,00,00);
t_step = datenum(00,00,00,01,00,00);
t_end = datenum(2016,12,02,00,00,00);
travel_time = ( t_start : t_step : t_end );
[X,Y] = meshgrid(linspace(126.85,142.15,101),linspace(35.05,48.1,86));
for i=1:length(travel_time)
DN(i) = {datestr(travel_time(i),31)};
WH_SWAN = data{i};
WH_SWAN = double(flipud(WH_SWAN));
[c h]=contourf(X,Y,WH_SWAN);
grid on; hold on; axis tight;
caxis([minwh maxwh]); bar = colorbar;
axis([126.85 142.15 35.05 48.1])
xlabel('Longitude','fontsize',20); ylabel('Latitude','fontsize',20);
set(gcf,'color','w','position',[200 200 600 500]);
% close(figure(i));

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by