Can you help me in compare whit matlab ?

1 回表示 (過去 30 日間)
moner
moner 2014 年 10 月 8 日
コメント済み: Orion 2014 年 10 月 8 日
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 件のコメント
Orion
Orion 2014 年 10 月 8 日
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);

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by