Hi all, To be honest, I'm a DSP beginner. I'm currently trying to filter 4 channel signals. However, I find it difficult to get the plot for filtered signals. Can somebody help me fix this problem. The code is shown below. Thank you in advance. Dean --- load A1.txt for i=1:4 figure(1); subplot(4,1,i) plot(A1(:,i)) axis([0 60000 -1 1]) xlabel('time,sec') ylabel('amplitude,V') figure(2); ord0; %order of bandpass filters %Create Low Pass Smoothing Filter lp=fir1(100,.005); %Filter Delta Range drange=[.005 .04]; dfilt=fir1(ord,drange); dsigs(conv(A1(:,1),dfilt)); %Convolve signal with BP filter. dlpsig=conv(dsig(:,1),lp); %Convolve with low pass filter to smooth. figure(2); subplot(4,1,i); plot(dlpsig(A1(:,1))); axis([0 60000 - 1 1]); end ----------------- |
filters
Started by ●September 22, 2003