how to compare the characteristics of two graphs

6 views (last 30 days)
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.

Accepted Answer

Massimo Zanetti
Massimo Zanetti on 27 Sep 2016
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 Comments
Massimo Zanetti
Massimo Zanetti on 27 Sep 2016
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 on 27 Sep 2016
that's working..!!but now i want to do it using neural network pattern recognition tool.

Sign in to comment.

More Answers (1)

Greg Heath
Greg Heath on 28 Sep 2016
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

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!