Comparison between two vectors and locate the error
이전 댓글 표시
I have to find the location of errors or differences between two vectors, for example
A=[ 5 2 -3 4 ]
B=[ -3 2 2 4 ]
the result should give locations of errors which are first and third number [1 , 3 ].
Thanks in advance
답변 (1개)
A=[ 5 2 -3 4 ];
B=[ -3 2 2 4 ];
locations = find(A~=B)
카테고리
도움말 센터 및 File Exchange에서 Aerospace Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!