%*************************************************************************************% 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 : 0 4/28/01%%ﻩﻩﻩ S Y N O P S I S: y = ds_m od(c,x)%ﻩﻩﻩ c --—> u s e r c ode (col u m n vecto r)% x -—-> in p ut s ig nal (r ow v e c t o r)% y ---〉 tmp = c*x, y = tm p(:) (ds-s s m o du la t ed s i gnal, col u mn vect or)%***********************************************************************************f unc t ion y = ds_mod(c,x)t m p = c*x;y = tm p(:);%*************************************************************************************% This functi o n gen er a t e ...