Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Ads

Discussion Groups

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

filters - dean_cvetkovic - Sep 22 12:50:00 2003



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);
ord=30; %order of bandpass filters
%Create Low Pass Smoothing Filter
lp=fir1(100,.005);

%Filter Delta Range
drange=[.005 .04];
dfilt=fir1(ord,drange);
dsig=abs(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
-----------------------------------------------------




(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )