MATLAB POLYSPACE RELEASE NOTES Manual de usuario Pagina 38

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 240
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 239 240

Comentarios a estos manuales

Sin comentarios