Check for array equality?
조회 수: 1 (최근 30일)
이전 댓글 표시
How can I check if indices of three arrays are equal and make those indices all zero if they are equal.
댓글 수: 2
James Tursa
2015년 2월 3일
Please provide a short example of your request. E.g., give three arrays and the desired output.
채택된 답변
John D'Errico
2015년 2월 4일
Not sure what the problem is. Why not just this?
ind = (A==B) && (A == C);
A(ind) = 0;
B(ind) = 0;
C(ind) = 0;
If this is not the answer, then you need to explain yourself FAR more clearly.
John
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!