Forums

Simulink and log10 function

Started by c r April 24, 2003
I am doing some analysis on an fft function inside simulink, that requires me to take the log10 of the incoming signal.  My input signal is a wav file and so the first frame is always zero, so when I want to take the ifft of the log10 function, I get an error and invalid data for the first frame.   How can I implement some form of error correction to fix this problem.
 
Thanks
Craig
 



Usually to avoid log of zero a small value is added to
the signal. Does that help in your case?

Navan

--- c r <> wrote:
> I am doing some analysis on an fft function inside
> simulink, that requires me to take the log10 of the
> incoming signal. My input signal is a wav file and
> so the first frame is always zero, so when I want to
> take the ifft of the log10 function, I get an error
> and invalid data for the first frame. How can I
> implement some form of error correction to fix this
> problem. ThanksCraig


__________________________________


Yes infact that is exactly what I did....I got to thinking about it, and added the 1e-18 to my inputing signal.   Thanks for all your help.
Craig