how to compare the characteristics of two graphs

6 Ansichten (letzte 30 Tage)
Princy Manaswini
Princy Manaswini am 27 Sep. 2016
Beantwortet: Greg Heath am 28 Sep. 2016
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.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Greg Heath
Greg Heath am 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

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by