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

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -