Call one array from a large array made up of several others
1 visualizzazione (ultimi 30 giorni)
I've got an array, say Z, made up of 4 smaller 2x2 ones, say A, B, C and D:
Z = a11 a12 b11 b12
a21 a22 b21 b22
c11 c12 d11 d12
c21 c22 d21 d22
Once I've created Z, is there a way to ask matlab for, for example, the first entry in each of A, B, C and D, based only on Z? I can call individual entries from it fine (e.g. the value at the 4th row, 3rd column), but would like to be able to store my data in one array and still treat it as individual arrays for some things.