Scilab Function

sprand - sparse random matrix

Calling Sequence

sp=sprand(nrows,ncols,fill [,typ])

Parameters

Description

sp=sprand(nrows,ncols,fill) returns a sparse matrix sp with nrows rows, ncols columns and approximately fill*nrows*ncols non-zero entries.

If typ='uniform' uniformly distributed values on [0,1] are generated. If typ='normal' normally distributed values are generated (mean=0 and standard deviation=1).

Examples

See Also