how to count the number of different elements in two matrices
    5 次查看(过去 30 天)
  
       显示 更早的评论
    
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 个评论
采纳的回答
更多回答(1 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


