필터 지우기
필터 지우기

compare two matrix one by one number to eachother

조회 수: 1 (최근 30일)
Elahe Karimi
Elahe Karimi 2019년 5월 18일
댓글: Elahe Karimi 2019년 5월 18일
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
WhatsApp Image 2019-05-18 at 10.29.08.jpeg
  댓글 수: 1
madhan ravi
madhan ravi 2019년 5월 18일
Picture not clear type an example and the desired output.

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
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 CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by