%*************************************************************************************% This fun ct io n pe r t ain s t o the a dd i tion of A W GN with mean ze ro a nd % p a r a meter 'v a ri a nce’ t o a n inp u t si gnal、 %% AU THOR: Wenbin L uo%ﻩﻩﻩ DA T E : 0 4/1 2/01%%ﻩ SYN O P SIS: y = awgn(x,var)% x ——-> in p ut sig n a l% v ar -—-〉 v a r iance% y ---> y = x + AWGN %***********************************************************************************fun c t i on y = a w g n(x,var) w = ran d n(1,len gt h(x));ﻩ w = w - mean(w)*ones(si z e(w)); w = sqr t(va r)*(w / s td(w)); x = x(:); w = w(:); y = x + w; %*************************************************************************************% T h is f u n c t i on d o es th e D S-S S modul a t io n%% A U T HO R: W e n bin L u o%ﻩﻩ DA T E