Bandpass_filter

Can i use bandpass_filter using data, for example using data from datafile?

thanks in advance

What exactly do you have in mind? Chapter 6.2 in the manual on dseries has an example on how to use the baxter_king_filter. Using the fsdat_simul.m from the Dynare examples-folder, you could use

ts1 = dseries('fsdat_simul.m');
ts2=ts1.baxter_king_filter
plot(ts1.data(:,1),'-k'); % Plot of the original data.
hold on
plot(ts2.data(:,1),'--r'); % Plot of the filtered data
hold off
axis tight
id = get(gca,'XTick');
set(gca,'XTickLabel',strings(ts1.dates(id)));