Blokkolnam0
10-10-2007, 07:15 AM
Dear All,
I use the NR convlv() function in my ANSI C program.
I have a signal array, and a response array like this:
signal[1024];
response[1024];
convlv(signal, 1024, resp, 307, +1, ans);
And I get the convolved result in the first half of
ans[2048];
The filesare attached(ASCII):
signal-prog-txt
response-prog-txt
signal-convolved-txt
And this result looks fine.
Now, I want to get back the original signal, by deconvolving the
convolved one with the response signal:
convlv(signal-convolved, 1024, resp, 307, -1, ans);
And now what I get is a mess:
signal-deconvolved-txt
, i do not get back the original signal. I do something wrong, but no clue how...:confused:
Someone please could help me?
Thank you very much,
Best Regards:),
András Bükki-Deme
I use the NR convlv() function in my ANSI C program.
I have a signal array, and a response array like this:
signal[1024];
response[1024];
convlv(signal, 1024, resp, 307, +1, ans);
And I get the convolved result in the first half of
ans[2048];
The filesare attached(ASCII):
signal-prog-txt
response-prog-txt
signal-convolved-txt
And this result looks fine.
Now, I want to get back the original signal, by deconvolving the
convolved one with the response signal:
convlv(signal-convolved, 1024, resp, 307, -1, ans);
And now what I get is a mess:
signal-deconvolved-txt
, i do not get back the original signal. I do something wrong, but no clue how...:confused:
Someone please could help me?
Thank you very much,
Best Regards:),
András Bükki-Deme