MATLAB Answers

How to scale a dataset to fit an other dataset?

16 ビュー (過去 30 日間)
I am working on a filter for a heartbeat sensor. Therefore I want to fit a 'perfect' heart beat graph (without noise) onto a signal with noise. Is there a function in matlab to scale the 'perfect' data such that it fits onto the signal with noise?
Since a heart rate is not constant, the perfect graph needs to be scaled in both amplitude and time/frequency in order to fit it onto the signal with noise.

採用された回答

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2015 年 6 月 3 日
Hi,
I recently found about Savitzky-Golay filter, which I think you will like it very much for your application.
Have a look at MATLAB help for
doc sgolay
Hope this helps.
  9 件のコメント
Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2015 年 6 月 4 日
Dear Roelst,
I'm glad that it helped.
If you have curve fitting toolbox, you may wanna have a loot at the fitting options, type cftool in command window and you will see the GUI
cftool
As far as I remember there are built in sin wave fittings, using multiple sins, you can even define your own custom function if you like.
Have a look at that, it may help you with the fitting.

サインインしてコメントする。

その他の回答 (1 件)

Thomas Koelen
Thomas Koelen 2015 年 6 月 3 日
編集済み: Thomas Koelen 2015 年 6 月 3 日
  1 件のコメント
roelst
roelst 2015 年 6 月 3 日
Thank you for your answer.
Could you specify how this function would be of help?

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by