MATLAB POLYSPACE RELEASE NOTES Manuale Utente Pagina 148

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 240
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 147
4 Programming
M(:,:,k) = A(:,p(k,:));
end
stores the sequence of 24 magic squares in a three-dimensional array, M.The
size of
M is
size(M)
ans =
4424
Note The order of the matrices shown in this illustration might differ from
your results. The
perms function always returns all permutations of the input
vector, but the order of the permutations might be different for different
MATLAB versions.
The statement
sum(M,d)
computes sums by varying the dth subscript. So
sum(M,1)
is a 1-by-4-by-24 array containing 24 copies of the row vector
4-10
Vedere la pagina 147
1 2 ... 143 144 145 146 147 148 149 150 151 152 153 ... 239 240

Commenti su questo manuale

Nessun commento