Navigation

Operators and Keywords

Function List:

C++ API

sprand.m File Reference


Functions

 elseif (nargin==3) mn
 if (isempty(i)) S
endif else print_usage ()

Variables

function S
 k = round (d*mn)
 idx = unique (fix (rand (min (k*1.01, k+10), 1) * mn)) + 1
 j = floor ((idx(1:k)-1)/m)
 i = idx(1:k) - j*m

Function Documentation

elseif ( nargin  = =3  ) 

if ( isempty(i)   ) 

endif else print_usage (  ) 


Variable Documentation

i = idx(1:k) - j*m

idx = unique (fix (rand (min (k*1.01, k+10), 1) * mn)) + 1

j = floor ((idx(1:k)-1)/m)

k = round (d*mn)

else S

Initial value:

 sprand (m, n, d)
  if (nargin == 1)
    [i, j, v] = find (m)