diff --git a/awgn b/awgn new file mode 100644 index 0000000000000000000000000000000000000000..4dfc57278d77662c440a9de19790ee4c7266a3ce --- /dev/null +++ b/awgn @@ -0,0 +1,7 @@ +function [n] = awgn(a,b,c) +% awgn(a,b,c) generates complex noise samples in a matrix of +% a rows and b columns with variance c. + +n = sqrt(c) * (1/sqrt(2)) * (randn(a,b) + 1j*randn(a,b)); + +end \ No newline at end of file