How can be a buffered signal reconstructed?

2 ビュー (過去 30 日間)
DuckDuck
DuckDuck 2015 年 2 月 11 日
回答済み: Paul Lovell 2025 年 4 月 23 日
I have a signal which i buffered with 2/3 overlap. Now i want to rebuild the buffered signal, but i don't know how to do it. To buffer it i used
length(signal)=112935;
wsize=256;
overlap(170);
buffer(signal, wsize, overlap);

回答 (2 件)

Petr Janousek
Petr Janousek 2021 年 3 月 5 日
編集済み: Petr Janousek 2021 年 3 月 5 日
This is now a 6y/o question, but I've been searching for an answer and didn't find one. So I have written the code myself and now I am posting it hoping someone-someday might find it useful.
General inverse buffer function:
function res = ibuffer(buffered, overlap)
A = buffered(overlap+1:end,1);
for i = 2:(size(buffered,2))
B = buffered(overlap+1:end,i);
A = cat(1,A,B);
end
res = A;
end
Tried on an actual signal to check if it works:
And it seems like it does... :)

Paul Lovell
Paul Lovell 2025 年 4 月 23 日

Useful code. Thanks Petr !

カテゴリ

Help Center および File ExchangeSignal Generation, Manipulation, and Analysis についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by