-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_rain.m
More file actions
38 lines (29 loc) · 810 Bytes
/
plot_rain.m
File metadata and controls
38 lines (29 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%% plot rain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear all; close all; clc;
%%
cd D:\trabajo\IGP\CLIM_PEZ\Dra_Jaramillos\datos2
%%
[data,raw,j]=xlsread('base_Datos_rain.xlsx','prom_anual_hidrologico');
years=data(:,1);
puertos=[j(1,2:end)];
%% plot
labs={'.--','x--','s--'};
figure
P=get(gcf,'position');
P(3)=P(3)*4;
P(4)=P(4)*1;
set(gcf,'position',P);
set(gcf,'PaperPositionMode','auto');
for ii=1:1:length(puertos)
plot(years,data(:,ii+1),char(labs(ii)))
hold on
end
grid on
legend(puertos);
ylabel('Promedio Anual [mm]','Fontsize',10)
set(gca,'xtick',[1963:1:2021],'xticklabel',[1963:1:2021],'xlim',[1963 2021],'Fontsize',6);
%% correlation
TT=data(:,2:end);
[R,P]=corrcoef(TT,'Rows','complete');
corrplot(TT);