MATLAB POLYSPACE RELEASE NOTES Manuel d'utilisateur Page 47

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 240
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 46
More About Matrices and Arrays
Then
pows = [n n.^2 2.^n ]
builds a table of squares and p owers of 2:
pows =
001
112
244
398
41616
52532
63664
749128
864256
981512
The elementary m ath functions operate on arrays element by element. So
format short g
x = (1:0.1:2)';
logs = [x log1 0(x)]
builds a table of logarithms.
logs =
1.0 0
1.1 0.04139
1.2 0.07918
1.3 0.11394
1.4 0.14613
1.5 0.17609
1.6 0.20412
1.7 0.23045
1.8 0.25527
1.9 0.27875
2.0 0.30103
2-25
Vue de la page 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 239 240

Commentaires sur ces manuels

Pas de commentaire