フィルターのクリア

Reconstruct original signal from filtered one with filter coefficients

1 回表示 (過去 30 日間)
Tran Tuan Anh
Tran Tuan Anh 2024 年 6 月 3 日
回答済み: Ashutosh Thakur 2024 年 6 月 26 日
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

回答 (1 件)

Ashutosh Thakur
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)
X_reconstructed = 1x5
1 2 3 4 5
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
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!

製品


リリース

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by