how to compare the characteristics of two graphs

4 ビュー (過去 30 日間)
Princy Manaswini
Princy Manaswini 2016 年 9 月 27 日
回答済み: Greg Heath 2016 年 9 月 28 日
I want to get a result by comparing the characteristics(patterns) of the two graphs above from Matlab. From the above graph we can see that the two graphs are of same characteristics but how to get the same result using Matlab? I have tried it using pattern recognition tool but didn't get any relevant results.please suggest me any other method/toolbox.

採用された回答

Massimo Zanetti
Massimo Zanetti 2016 年 9 月 27 日
As far as I can get, the two graphs have the same derivative. Try differenziate both of them, you will get similar results. Use diff(x) and diff(y), where x,y are your two signals. Does it help?
  5 件のコメント
Massimo Zanetti
Massimo Zanetti 2016 年 9 月 27 日
What about measuring the difference of the derivatives, if they are under a given small tolerance then the two graphs are considered to be "similar", otherwise they don't.
a=diff(x);
b=diff(y);
dist=norm(a-b);
tol=0.1;
if dist<tol
disp('graphs have similar charact.');
else
disp('graphs have differente charact.');
end
Tune the TOL parameter to your needs.
Princy Manaswini
Princy Manaswini 2016 年 9 月 27 日
that's working..!!but now i want to do it using neural network pattern recognition tool.

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

その他の回答 (1 件)

Greg Heath
Greg Heath 2016 年 9 月 28 日
After looking at the graphs, I would
1. Compare means
2. Compare variances and standard deviations.
3. Compare standardized waveforms (zscore or mapstd)
4. Calculate the Mahalanobis distance between them.
Hope this helps.
Greg

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by