i want to compare between 3 matrices
이전 댓글 표시
I have an equation that i have 3 matrices
i should compare to each other with an if statment
I1 and I2 are matrices
plus what if i want to compare I1 == I2 == I3
if true i would print something
if I1 == I2
disp('I1 = I2')
end
답변 (1개)
Alex Mcaulley
2020년 4월 6일
if isequal(I1,I2,I3)
disp('I1 == I2 == I3')
end
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!