Please enable JavaScript to view this site.

Knowledge Base

Initialize a matrix. All elements are random numbers between 0 and 1.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

x = randmatrix(i,j,k,....);

Initializes an i x j x k x .... matrix. The elements are all random numbers between 0 and 1.

 

Examples

 

?x=randmatrix(2,2,2);

result(i,j,1):

0.202368 0.503983 

0.570605 0.89404 

 

result(i,j,2):

0.740623 0.669118 

0.888394 0.295022  

See Also

Manipulating variables, matrix, rand, randreset

Copyright Lumerical Inc. | Privacy | Site Map