- https://www.mathworks.com/help/matlab/ref/filter.html.
- https://www.mathworks.com/matlabcentral/answers/338325-inverse-of-filter-function.
Reconstruct original signal from filtered one with filter coefficients
6 views (last 30 days)
Show older comments
Hello everyone,
I would like to know if there is a method to reconstruct an original signal from a filtered one with filter coefficients.
For example, X is my original signal and is filtered by a low pass filter with coefficients [b,a]. The output is Y.
So how to get X back from Y and [b,a]?
Thank you for your answer
0 Comments
Answers (1)
Ashutosh Thakur
on 26 Jun 2024
Hi Tran,
If you want to reconstruct the original signal (X) from the filtered signal (Y), you need to apply an inverse filter to the signal Y. You can apply the inverse filter by switching the coefficients passed to the filter function compared to the original signal. The following lines of sample code will give you more information regarding this approach:
% Original signal
X = [1, 2, 3, 4, 5];
% Filter coefficients
b = [0.5, 0.5];
a = 1;
% Filtered signal
Y = filter(b, a, X);
% Reconstruct the original signal by switching the coefficients
% instead of b,a we will use a,b.
X_reconstructed = filter(a, b, Y)
As you can see, by changing the coefficients from [b, a] to [a, b], we were able to reconstruct the original signal (X) from the filtered one (Y).
You can refer to the following documentation links for more information regarding the filter function in MATLAB:
I hope this helps you!
0 Comments
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!