Matlab函数——crandn

产生实部和虚部分别服从正态分布的随机虚数

function [out] = crandn(varargin)

% Copyright 2004 The MathWorks, Inc.

try
    m1 = randn(varargin{:});
    m2 = randn(varargin{:});
    out = m1 + sqrt(-1)*m2;
catch fred
   throw(fred);
end

你可能感兴趣的:(matlab,crandn)