function y = WhiteNoise(x) global MATLABVERSION if MATLABVERSION == 3.5, rand('normal'); y = rand(x); else y = randn(size(x)); end