Indexing matrix in matlab

2 Ansichten (letzte 30 Tage)
sachin adnaik
sachin adnaik am 12 Apr. 2011
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 Kommentar
Oleg Komarov
Oleg Komarov am 12 Apr. 2011
Your question is too vague...

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Oleg Komarov
Oleg Komarov am 12 Apr. 2011
How are those matrices generated, what are their dimensions, what kind of comparison...

Matt Fig
Matt Fig am 12 Apr. 2011
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})

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by