How to estimate the similarity between two signals?

3 ビュー (過去 30 日間)
Masih
Masih 2011 年 8 月 4 日
編集済み: Abbas Arghavani 2017 年 1 月 14 日
I have many sine wave signals, which have different phase, amplitude,frequency and also affected by noise. There is a reference sine wave which is defined as ideal one.I really need to find the best noisy sine wave that have highest similarity to the reference sine wave. Could you help about the MATLAB program to come up related this problem?
  1 件のコメント
Daniel Shub
Daniel Shub 2011 年 8 月 5 日
You need to define similarity. If one signal has a 10% difference in amplitude and another a 10% difference in frequency, which is more similar?

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

回答 (3 件)

Desiree
Desiree 2011 年 8 月 5 日
Calculating the correlation coefficient might be a start. You can use corrcoef function for that. If the signal gets more complicated you might wanna look into other methods as well. Frequency analysis, spectral estimates but maybe also more simple statistics functions (f.ex. standard deviation) might help you there. Apart from basic MATLAB Statistics Toolbox and Signal Processing Toolbox might be of help here.

Image Analyst
Image Analyst 2011 年 8 月 5 日
You could try using the PSNR http://en.wikipedia.org/wiki/PSNR

Abbas Arghavani
Abbas Arghavani 2017 年 1 月 14 日
編集済み: Abbas Arghavani 2017 年 1 月 14 日
I think it highly depends on the definition of similarity you are looking for. Sometimes you look for a signal (say s1) to help you to estimate another signal (say s0). Generally, I suggest cross-correlation to find the phase shift (lag) between all existing signals (si) and s0. When you find the lag, you easily can shift the signals and calculate the Pearson's correlation coefficient using coe_i = corrcoef(si, s0) function. The signal i with the biggest abs(coe_i) is the most simillar signal to s0.

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by