Indexing matrix in matlab
이전 댓글 표시
I have generated 3^n (n>1) matrices, then I want to compare them. How they can be indexed for the purpose of comparison. In fact I want to know distinct number of matrices and their frequencies.
댓글 수: 1
Oleg Komarov
2011년 4월 12일
Your question is too vague...
답변 (2개)
Oleg Komarov
2011년 4월 12일
0 개 추천
How are those matrices generated, what are their dimensions, what kind of comparison...
Matt Fig
2011년 4월 12일
You could put them into a cell array:
C = {magic(3) ones(3) zeros(3) magic(3) magic(3) ones(3)*6 zeros(3)};
isequal(C{1},C{2})
isequal(C{1},C{4})
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!