- 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
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Ashutosh Thakur
2024-6-26
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multirate Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!