[~, ~, raw, dates] = xlsread('date_actuale7.xlsx','final','A2:AC61','',@convertSpreadsheetExcelDates);
raw = raw(:,[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]);
dates = dates(:,1);

data = reshape([raw{:}],size(raw));

VarName1 = datetime([dates{:,1}].', 'ConvertFrom', 'Excel', 'Format', 'dd/MM/yyyy');
pi = demean(data(:,1));
pi_p = demean((data(:,2)));
%pi_ex = (data(:,3));
%pi_imp = (data(:,4));
%pi_f=pi_imp;
y = (data(:,5));
%y_n = hpfilter(y,1600);
c = (data(:,6));
%c_n = hpfilter(c,1600);
%ex= (data(:,7));
%imp=(data(:,8));
%nx= (ex-imp);
i = demean(data(:,9));
%r_nat=hpfilter(i-pi_p,1600);
er = (data(:,10));
%u = (data(:,11));
%l = (data(:,12));
n = (data(:,13));
%n_n= hpfilter(n,1600);
w = (data(:,14));
pi_w=demean(w(+1)-w);
omega=data(:,15);
%omega_n= hpfilter(omega,1600);
s=data(:,16);
%pi_EA = (data(:,17));
%pi_p_EA = (data(:,18));
%y_EA = detrend(data(:,19));
%c_EA = (data(:,20));
%ex_EA = (data(:,21));
%imp_EA = (data(:,22));
%nx_EA = (ex_EA-imp_EA);
%u_EA = (data(:,23));
%l_EA = (data(:,24));
%n_EA = (data(:,25));
%pi_w_EA = (data(:,26));
%er_EA = (data(:,27));
%i_EA = (data(:,28));

clearvars data raw dates;