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');
plot(,1),'-k'); % Plot of the original data.
hold on
plot(,1),'--r'); % Plot of the filtered data
hold off
axis tight
id = get(gca,'XTick');