Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

need ur immediate help in this question

Status
Not open for further replies.

vjfaisal

Full Member level 4
Joined
Sep 24, 2006
Messages
205
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
pakistan
Activity points
2,701
Hi,

i want to convolve the sound .wav signal with its filtered one, what can i do ....

if i directly convolve it gives the error, please tell me what i do..

code: in matlab

y1=wavread('02.wav')

B=fir1(Wn,N,'bandpass') (Wn, and N are alredy given)
h=conv(y1,B)

please your help is required.....................

best regards
 

check out the size of y1. It will be a 2-d array containing 2 columns, one for L and R each. So normal 'conv' may not work. Also, check for B.. whether column or row..
 

so give me the , how to convolve in ths situation............
 

use conv2 i think that might help

CONV2 Two dimensional convolution.
C = CONV2(A, B) performs the 2-D convolution of matrices
A and B. If [ma,na] = size(A) and [mb,nb] = size(B), then
size(C) = [ma+mb-1,na+nb-1].
C = CONV2(HCOL, HROW, A) convolves A separably with HCOL
in the column direction and HROW in the row direction.
HCOL and HROW should both be vectors.

C = CONV2( ... ,'shape') returns a subsection of the 2-D
convolution with size specified by 'shape':
'full' - (default) returns the full 2-D convolution,
'same' - returns the central part of the convolution
that is the same size as A.
'valid' - returns only those parts of the convolution
that are computed without the zero-padded
edges. size(C) = [ma-mb+1,na-nb+1] when
all(size(A) >= size(B)), otherwise C is empty.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top