FUNCTION REFERENCE
sprandn
Random sparse matrix with normally distributed stored values.
Random sparse matrix with normally distributed stored values.
Syntax
S = sprandn(m, n, density)Syntax
R = sprandn(S)Draws a sparse pattern as sprand does, with normal stored values. The one-input form keeps the nonzero pattern.
Example
S = sprandn(4, 5, 0.3); issparse(S)Differences from MATLAB: Positions are drawn first and values second; normal draws use MatRust's rng implementation.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.