home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / ELMAT.DI$ / RANDN.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  807 b   |  20 lines

  1. %RANDN    Normally distributed random numbers and matrices.
  2. %    RANDN(N) is an N-by-N matrix with random entries, chosen
  3. %    from a normal distribution with mean 0.0 and variance 1.0.
  4. %    RANDN(M,N) or RANDN([M,N]) is an M-by-N matrix with random entries.
  5. %    RANDN(SIZE(A)) is the same size as A.
  6. %    RANDN with no arguments is a scalar whose value changes each time
  7. %    it is referenced.
  8. %
  9. %    RANDN('seed') returns the current seed of the normal generator.
  10. %    RANDN('seed',s) sets the normal generator seed to s.
  11. %    RANDN('seed',0) resets the seed its startup value.
  12. %    RANDN('seed',sum(100*clock)) sets it to a different value each time.
  13. %
  14. %    RANDN and RAND have separate generators, each with its own seed.
  15. %
  16. %    See also RAND, SPRANDN.
  17.  
  18. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  19. %    Built-in function.
  20.