[~, ~, raw, dates] = xlsread('date.xlsx','log data','A2:Q61','',@convertSpreadsheetExcelDates);
raw = raw(:,[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]);
dates = dates(:,1);

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

VarName1 = datetime([dates{:,1}].', 'ConvertFrom', 'Excel', 'Format', 'dd/MM/yyyy');
p = detrend(data(:,1));
pi = p(+1)-p;
p_p = detrend(data(:,2));
pi_p = p_p(+1)-p_p;
p_ex = (data(:,3));
p_imp = (data(:,4));
p_f=p_imp;
y = detrend(data(:,5));
y_n = hpfilter(y,1600);
c = detrend(data(:,6));
c_n = hpfilter(data(:,6),1600);
ex= detrend(data(:,7));
imp=detrend(data(:,8));
nx= (ex-imp);
i = demean(data(:,9));
r_nat=hpfilter(data(:,9)-pi_p,1600);
er = demean(data(:,10));
u = demean(data(:,11));
l = demean(data(:,12));
n = demean(data(:,13));
n_n= hpfilter(data(:,13),1600);
w = (data(:,14));
pi_w = demean(w(+1)-w);
omega=detrend(data(:,15));
s=data(:,16);

clearvars data raw dates;