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

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -