How can we equate two matrices element by element suppose one matrix is a variable matrix and the other is a coefficient matrix
조회 수: 2 (최근 30일)
이전 댓글 표시
How can we equate two matrices with same size,element by element suppose one matrix is a variable matrix and the other one is a coefficient matrix
댓글 수: 0
답변 (1개)
Domanic
2018년 1월 25일
To test two equal-sized matrices for equality element-wise, you simply use the == operator. For example, take the two random binary 4x4 matrices, A and B, defined as follows:
A=randi([0 1],4),
B=randi([0 1],4)
Then the element-wise test for equality is simply:
A==B
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!