Can you help me in compare whit matlab ?

1 visualización (últimos 30 días)
moner
moner el 8 de Oct. de 2014
Comentada: Orion el 8 de Oct. de 2014
hello,
I' need a function to compare files & Give a ratio of compare difference
Example : - a=5 , b=5.5 then a~=b but compare difference is approx... 60% .
please help .....
  1 comentario
Orion
Orion el 8 de Oct. de 2014
It's not clear, do you want to compare files or variables ?
And in your example, the difference between a and b is 10 % which you can consider as a relative error calculated by
d = abs((a-b)/a);

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by