MATLAB POLYSPACE RELEASE NOTES Instrukcja Użytkownika Strona 51

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 240
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 50
More About Matrices and Arrays
k = find(isprime(A))'
picks out the locations, using one-dimensional indexing, of the primes in the
magic square:
k=
2 5 9 1 0 11 13
Display those primes, as a ro w vector in the order determined b y k,with
A(k)
ans =
53211713
When you use k as a left-hand-side index in an assignment statement, the
matrix structure is preserved:
A(k) = NaN
A=
16 NaN NaN NaN
NaN 10 NaN 8
96NaN12
41514 1
2-29
Przeglądanie stron 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 239 240

Komentarze do niniejszej Instrukcji

Brak uwag