how to compare the characteristics of two graphs
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Princy Manaswini
el 27 de Sept. de 2016
Respondida: Greg Heath
el 28 de Sept. de 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.
0 comentarios
Respuesta aceptada
Massimo Zanetti
el 27 de Sept. de 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 comentarios
Massimo Zanetti
el 27 de Sept. de 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.
Más respuestas (1)
Greg Heath
el 28 de Sept. de 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
0 comentarios
Ver también
Categorías
Más información sobre Deep Learning Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!