MATLAB POLYSPACE RELEASE NOTES Bedienungsanleitung Seite 38

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 240
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 37
2 Matrices and Arra ys
Working with Matrices
In this section.. .
“Generating Matrices” on page 2-16
“The load Function” on page 2-17
“M-Files” on page 2 -17
“Concatenation” on page 2-18
“Deleting Rows and Columns” on page 2-19
Generating Matrices
MATLAB provides four functions that generate basic matrices.
zeros
All zeros
ones
All ones
rand
Uniformly distributed random elements
randn
Normally distributed random elements
Herearesomeexamples:
Z = zeros(2,4)
Z=
0000
0000
F = 5*ones(3,3)
F=
555
555
555
N = fix(10*rand(1,10))
N=
9264874084
2-16
Seitenansicht 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 239 240

Kommentare zu diesen Handbüchern

Keine Kommentare