compare two matrix one by one number to eachother
1 次查看(过去 30 天)
显示 更早的评论
hello,
I have two matrix like this image (Left matrix and rigth matrix ). I want to compare them , (so that the first number of matrix compare with the first number of other matrix and the second number is compared with the second number of the matrix and the third number with the third number of the other matrix ), and then the number of the equals were obtained.
In the next step, we'll compare three other (next) numbers and get the number of equals that are equal. Similarly, to the last row.
Please help me
thank you so much
采纳的回答
madhan ravi
2019-5-18
% a = > first matrix
% b = > second matrix
sum(a==b) % each column -> tells the number of counts of each matrix's column comparison
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Point Cloud Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!