how to compare the characteristics of two graphs

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by