From 10a524ebf77a8db2ed2c99f52076766586c9d3bb Mon Sep 17 00:00:00 2001 From: Renaud Gonce <renaud.gonce@student.uclouvain.be> Date: Fri, 12 Jun 2020 21:25:17 +0200 Subject: [PATCH] Add new file --- awgn | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 awgn diff --git a/awgn b/awgn new file mode 100644 index 0000000..4dfc572 --- /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 -- GitLab