MATLAB PARALLEL COMPUTING TOOLBOX - S Guida Utente Pagina 606

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 605
11 Functions — Alphabetical List
11-262
randi
Array of random integers
Syntax
R = randi(valrange,sz,arraytype)
R = randi(valrange,sz,datatype,arraytype)
R = randi(valrange,sz,'like',P)
R = randi(valrange,sz,datatype,'like',P)
C = randi(valrange,sz,codist)
C = randi(valrange,sz,datatype,codist)
C = randi(valrange,sz, ___ ,codist,'noCommunication')
C = randi(valrange,sz, ___ ,codist,'like',P)
Description
R = randi(valrange,sz,arraytype) creates a matrix with underlying class of
double, with randi integer values in all elements.
R = randi(valrange,sz,datatype,arraytype) creates a matrix with underlying
class of datatype, with randi values in all elements.
The size and type of array are specified by the argument options according to the
following table.
Argument Values Descriptions
valrange
max or [min max]
Specifies integer value range from 1 to max, or
from min to max..
n Specifies size as an n-by-n matrix.
m,n or [m n] Specifies size as an m-by-n matrix.
sz
m,n,...,k or [m
n ... k]
Specifies size as an m-by-n-by-...-by-k array.
arraytype
'distributed'
Specifies distributed array.
Vedere la pagina 605
1 2 ... 601 602 603 604 605 606 607 608 609 610 611 ... 655 656

Commenti su questo manuale

Nessun commento