how to count the number of different elements in two matrices
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aditya Shau
am 14 Nov. 2018
Kommentiert: Aditya Shau
am 15 Nov. 2018
Suppose there are 2 matrices of double type each with same elements, assume
a = [1,0,0,0,1] and
b = [1,0,0,0,0].
Here, the nnumber of different elements is 1(i.e. the last element is different)
and finally it should give the result as, 1/5= 0.2. It means, result = no. of differet elemet / total number of element.
Kindly suggest.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!