Hi everyone,
In the above code I am trying to separate voiced and unvoiced components.If the value in countvec<60,the corresponding frame of original signal is assigned to the current frame of voiced else the same is done to unvoiced.But,I am not getting the required waveform.I want to know what is the flaw in the above segment.Pls help.Thanx in advance.
I don't know but +160 in stead of +159 seems more logical ?
Anyways, the below might be a more matlabish approach to your separation problem
Q = countvec < 60 ; % select
Q = logical(kron(Q,ones(1,160))) ; % expand
voiced = y(Q)
unvoiced = y(~Q)
hth
Jos