matlab - What does the third input to rand mean? -
in matlab if:
x = rand(a,b,c);
what third input rand
, c
, mean?
a
: numbers of rows
b
: numbers of columns
c
: ??
in matlab, matrices not limited 2 dimensions (i.e. rows , columns), can have many higher dimensions.
the third input rand
function telling rand
size of third dimension want. default 1
, in case instead c
.
in general, nth input rand
size of nth dimension of matrix of random numbers produces.
Comments
Post a Comment