How can i reconstruct a signal?

1 次查看(过去 30 天)
i have a signal (vector) with blanks (parts with zero value) and i want reconstruct the signal by fill the gaps with random parts of the main signals,how can i do this?

采纳的回答

Image Analyst
Image Analyst 2013-3-22
Why not use interp1() or TriScatteredInterp(), or if it's an image, roifill()? Those all use neighboring values to fill in the blanks. Why would you want to use random parts of the signal to fill in the gaps? I don't see the sense in that.
  3 个评论
Samuel Tarazona
Samuel Tarazona 2021-6-3
Dear Sir, I would like to know how I can apply your script to the case in the figure above. The data I reconstructed is in the middle.
Thanks in advance!
Image Analyst
Image Analyst 2021-6-3
Looks like you already applied it. If you need more help, post your code and screenshot in a new question.

请先登录,再进行评论。

更多回答(1 个)

Dimitris Malamas
Dimitris Malamas 2013-3-22
Thank you for the answer. I want to use random parts of the signal because it is a biosignal and this is the right way to fill the gaps.

Community Treasure Hunt

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

Start Hunting!

Translated by