matlab: - ylche21.files.wordpress.com file · web viewmatlab: >>sptool new. design fir....

6
Matlab: >>SPTOOL New

Upload: dangkhanh

Post on 09-Feb-2019

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Matlab: - ylche21.files.wordpress.com file · Web viewMatlab: >>SPTOOL New. Design FIR. Response type: Bandpass. Astop means attenuation gain, The coefficient of the filter can be

Matlab:>>SPTOOL

New

Page 2: Matlab: - ylche21.files.wordpress.com file · Web viewMatlab: >>SPTOOL New. Design FIR. Response type: Bandpass. Astop means attenuation gain, The coefficient of the filter can be

Design FIRResponse type: Bandpass

Astop means attenuation gain,

The coefficient of the filter can be seen from analysisfilter coefficient

Page 3: Matlab: - ylche21.files.wordpress.com file · Web viewMatlab: >>SPTOOL New. Design FIR. Response type: Bandpass. Astop means attenuation gain, The coefficient of the filter can be

Export the filter data

For convolution:If the coefficient of filter is a(1), a(2), a(2),and signal is bThen

%%convolutionfor i=3:length(b)+6newsignal(i)=a(1)*b(i)+a(2)*b(i-1)+a(3)*b(i-2);end

newsignal(1)=a(1)*b(1);newsignal(2)=a(1)*b(2)+a(2)*b(1);

Page 4: Matlab: - ylche21.files.wordpress.com file · Web viewMatlab: >>SPTOOL New. Design FIR. Response type: Bandpass. Astop means attenuation gain, The coefficient of the filter can be

%%so newsignal is the new signal

After the filter which we have designed

For the go

Left

Page 5: Matlab: - ylche21.files.wordpress.com file · Web viewMatlab: >>SPTOOL New. Design FIR. Response type: Bandpass. Astop means attenuation gain, The coefficient of the filter can be

Right

To get this, what I do isImport the signal from the workspace(import fuction under the file of the SPTOOL)Go1 left1 and right1 is the signal get from the wavread(‘***.wav’)

Page 6: Matlab: - ylche21.files.wordpress.com file · Web viewMatlab: >>SPTOOL New. Design FIR. Response type: Bandpass. Astop means attenuation gain, The coefficient of the filter can be

Select right filter and imput signal ,Click the apply, then u can name the output signal, then view it