MATLAB POLYSPACE RELEASE NOTES Manual do Utilizador Página 38

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 240
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 239 240

Comentários a estes Manuais

Sem comentários