DESCRIPTION res = irandn(r,c,...) Complex random normal distributed numbers. In the real as well as in the imaginary part. abs(irandn(r,c,...)) is then rayleigh distributed. INPUT size parameters as for i.e. zeros OUTPUT res -- A matrix of size according to input with complex elements. Both the real and the imaginary part distributed N(0,1).
0001 function res = irandn(varargin) 0002 % DESCRIPTION res = irandn(r,c,...) 0003 % Complex random normal distributed numbers. 0004 % In the real as well as in the imaginary part. 0005 % abs(irandn(r,c,...)) is then rayleigh distributed. 0006 % INPUT 0007 % size parameters as for i.e. zeros 0008 % OUTPUT 0009 % res -- A matrix of size according to input with complex 0010 % elements. Both the real and the imaginary part 0011 % distributed N(0,1). 0012 0013 % TRY plot(irandn(100),'.') 0014 % SEE ALSO irand 0015 0016 % by Magnus Almgren 970611 0017 0018 % $Id: irandn.m,v 1.1 2004/05/12 16:22:33 dalai Exp $ 0019 0020 0021 res = randn(varargin{:}) + i*randn(varargin{:});