You are on page 1of 118
ANNA UNIVERSITY COLLEGE OF ENGINEERING BONAFIDE CERTIFICATE Name AR. BRANUSUYA. D1ASS 2 aa MaK.m. COMMUNICATION... SYSTEMS, ROI NO. 2 ns AOMRRTA.QE Certified that this is the bonafide record of work done by the above student in the Sitntay..Reatessina..ANo..WiRELESS...GemuNloAnON = CMz1UL.Laboratory during the year 2018-2019 Signature of Lab-in-Charge Signature of Head of the Department Submitted for the Practical Examination held on .. Tie dae ae Internal Examiner Sr. No, Name of the Experiment | SPECTRAL CHARACTERIZATION OF dmamunucATION SEN ALS. 2. DESIGN AnD PeREmeMaANce ANALYSIS OF ERron Conv7pol. ____Enceper ano Decopee [3 Winevess Cranmer MULATION &. CHARACTERIZATION 4. DESIGN AND ANALYSIS OF 5: CDua Siawan Generarion rectum ESTIMADRS. 1 Ane Derection ___ 316. 11.2018 : 6. WIRELESS CHANNEL ERUALIZER. ____Drsian__ 28 20:10.2018 |: erp Transcener Desian Ue mamas. 32.30. )0.2018 4. Simura tion Or _nauao Reka eMC 8. Spy _0F spr, L396 30:10:2018 30. 0.2018 “Index. Ei = Sr. F Page| Date of | Date of Sr Name of the Experiment NO" esperment i Remar we] Senn Towne | ____syneurowizerion___ 4419122018 oyu Oise Teachers Signoture Bock Dagar Arbitrasy Digital Function, Out si Generator | *aret Cactteepe Mops, Cigars comer eAsincaod aR TL ii, Bguane were (507) duty oye) Bent gute () a a t 4 : ieee eeereaeTn RRR RR Fike) Z Signs [Using Spectrum _Awatyser] Teccher(s Sneha ii, Ayana sume (25%) daly cycle) Amplitude (v) ea A tearm * TAREE? ee) vy, Tiiamgulen wewe.. Amplitude (v) 4 0] ae ‘Fa 37 a Prwen (48) 4 (htle) TH ee hi Ie | A win nt)_s$————_4 f S06 = $5) +S lfe$,) J —__ - Aqwant _wawe xp = $A _o4teT Oo teceet | eal Ain Cen) __where D__Duly Cyche __| Ten Tiuangulan —wawe, ) = 2a b25/ £ (Tat) __Tigeeer Aa a = ee neo: 2 2A nol [nen les Ne 2idehe TABULATION. 6 _Biene_urowe ; Theostitical value Practeat value Amplitude » SVp-p Amplitude = 5¥p-p Frequency = 10KHe Fraquenty = 10.04 KHz Pout (dB) = 4-94 4B Power (48) = 5.03 dB i, Pycane_awawe [507] Buty ydle] Theonitical value Practical value Amplitude = BYp.p Amplitude = 5.29 Vp-p Pruquncy = 10 KHe Fraquunty= 1okHe | cae) | Practical es | ao | | a + | 5 | ois | over | 4.94 was | lelele| « 2 | | 3 eon| oon | mse | ae = Vena = Veni Monax + Vmin _— Spittium 2, AM aignal ds. SB s Ae Pocgate + fgg pe Ef EG het bd 4 EEG + Cet bm DT + emf EL$ = ($o=$g)) + FL p + (fe-$m 027 + Spedtium of NBEM signal des Ere srnlf-= Ae [80g -fe)- = £44&)]= pe | Ae [8cp-he) + £44) J= pe [ 4d Chet md) ECB etm] + Ble [88> Gexbmd4 ee gr (he- km]. Teacher's Signature all J til Sqwone wave [ 85 /- Baily qed ‘TheoniticaL Practicak Amplitude = 5Vpp Amplitude = 6.28 Vpp Frsquerey = lokie Frequency = 10 He f | Gs Fn (48) | | =IGI* — Theanitical Practical | [om lisse Naso) rose 2 osas| oss 1.484 3 0s72 | 0134 - 8.516 Expt No. PageNo. 4 lara [ECB bet bd) + O6$% Geter] + Ae igigd [ 5(§ =(f22hp)) + EC f= (4,4 abd] | Ae Ty (Pf 6 B= Gem Fmd) + 64 + Hea tm] + Acta tp) fe ly- HBr Eb Che Bm Jt fy Tixtangul : Amplitude © 5Vpy Frequenty = 10 KHe | en | oe Fy (48) ] jn aa ae Veal” | thaondtieal | Practical 1 0. Ih 0.05 & o ° 3 Oe 0.013 | 18-99 8 4 ° e it 5 — 29.84 | i ‘ 7 = 33.68 2 ° 9 — 38.08 ic - uw 0.0083 | 0.c000% — 41.54 (eee ° ° 13. 0,006 | 3.616 44.44 Dota PageNe 5 dn sthe _Anbilfiany Funchin. generator (AFG), use the | Mepuined —algnal ith eguinned frequency and amplitude APS to set the aamplitude amd frequency — Teacher's Signotire i : nes jiy Modulation indee , = 60 26 bas 1.s6as fe = Pitted = Spite» fe> Ser Practical : pe _ta=0. ob “rare6e oe as 0.625 Vinee = 3.00/07 Vmax = bY aa Pe lei 6.85 0.390 BV mnin 7-32 = Venn = 0-6 = 0.484 > 484% Teacher's Signatre ————————————————e af 8 Af 2 O-1X5 Kite ShHe | c as | 6 | Pe f Cormier a Sidebands | 0.125 | 0.0156 cre is => Vaz = 16V = 1-08 => Ynin 058 20.28) = 22-1 */ cas) e= 5oKne , af = px tm 28 ite = Ske mien a | 0.28% | 0.0825 3 | 0.049 aux? 4 | eared] oe |} as \ ol Gee ob 6 - Re carol| ees 5 | o.o1gts | -eaxio* 10 | 0-046 a.ubxid? is otaas | 0-0178 20 | 0.328 oot as 0.652 | 0-426 300.978 | 0.956 35 0.412 0.832 40 Ole 02-0198 45 | 0.917 06%) 50 | 0.444 | 0-19% 55 0.819 0.64! 60 | oe | 00188 65 | 0.9m | 0-832 30 | 04718) 0.966 a5/| 0.652) 0-426 26. 0.829 | 010% | 25 0.1385 | o.or1e 90 0.046 /a.ui6xid® as |e.0137s | Keanot : ecru AM Sam 4) | hfe | Be hee a fefm Fe fetn F pads 24 NBFM Spalf) Ms It ie Date. PageNo, 10 Brocn Diagrams 1 Uncoded _BPSIS [Eu BPsk Chonnsl ed Byte > Hyrot pin F | ere [ee | auen Cobeutation Ber Estimation & Home a Chanral ers oon codex iynbat mreppicg Doe 4-10.2018 Expt. Page No, Desien AND PERFORMANCE ANALYSIS OF Fon, = PxSNR _; pooh yet SNR Toochee's Signore Pik he apoph of Sve w Bie pr tac, wih omrtng | fad without hamming Ode ORR Without hamming code with arming cate (12) erftsqr((1/2)*(10.°(SNRI1O))); ndi(0 1}.N): m=(eshapeln 4.4) rm4_bpskema;" _bpsk(end_bpsk—-0)~ syndrome=zer0stN/4, 3} ber_un=zer0sl,leng¢SNR)): ber hart~2eros(lengthySNR)) PH[L10;101501 15111}, eP eyeil: 008) Ph hesyndtable(H) codeT=modms*.2); ‘ode-reshape(code? 1) code 7; oe=-0) fort l:tengtSNR) is) cade_bpskmawgn(,i/measuted); msg_bpsk-awan(md_bpskivmeasured); vyodecode_bpsk; Yieode(y-code>-0)=1 - Yieode(y-code<0)-0;° ymspmmse_bpsk; Yimsp(y_msg>-0)=1; Yimsa(y_msg<0)-0;, -ymmg_unreshape(y_ ms’ Os syndrome=mody_code*#2); ccomect-h(Lbi2de(yndrome,ettamsb).), 9-¢adehme=xor(y_code.convect; y-sode_fimet=y code _hme(s(4 56 7); y.code_hmer-reshapety code hmes', {Di ber an)bierty_mse_un.m)(): Ber amy ber coe bern }\) ‘igure; semiogy(SNRPe\-pr); holdon semilogy(SNR,ber_un-pe), holdon semilogy(SNR,ber_ham,-pb); label SNR(AB)); label BER’, ‘egend(TheoriticalBPSK' Without Hamming code" Wit Hamming code’: gridom axistights a BLOCK DIAGRAMS 6 Slew amd FLok Fading : vo —Aeeet Fyn & Clompler Gaussian) ti, Fost amd Flot Fading alia) ofan o— ‘een st ao| Faw oS om [Comper Goumsian f genavater ii, _aBlow amd Facqueney aBeluckive Fading: aw “ei o, % Plot the Con = ee yo a oe Ceempler Gyauetan) Teachers Signture ty Fost a) Ah Growsa'an “Ww ‘omplen rasesiaon Teacher's Signatre Flows Chant [Benwuatt 8 ore agra] fer a} aiprad | we andFat fading «awa pa npg evarnpoiy SR ag Sista gt Generate |» |Gervute comple leenenate 2 lcpenensile 2 aati arnplex Grauis tam. lex af emplir Grausetam Ravrdamt Gamion oe Ramdern Voscintites , ME ‘rood, eae varfobte epee vvartaddes efi o rentable | Leer pee gh oh X18) _|_ a Pan @,sand inh aus hee) yon 4,200] : ano He 4.10 tagh Le wat eat ee aed] | obs epuny Fina Fer pedirny <% ob y one ey £ pepe Dg] [pooner] Sputum gO-FiD Gand Fer of yt) ar aio y= y+) hh yte) and. mat 7 Plot spec] Ve plat the |_ pasion EXPERIMENT 3: FADING CHARACTERISTICS le; close al clear al feBes;, A=1e6; 12-266; foppler1e3; cy-200, 0: /F){ey*(Mlemi1,22)); N=512; lengh() ON-)RN; ‘IN-ENND- of NStexp(L2¢pi*(A1)*H=Stenp( lite pit: xdo(zees(] 4) x1, L:length(s)4)] [baa}=buter0,fdoppleni 2), elnpue FET Abx=fON)s plait Pst 1-N)} labelCFrequeney(H2)); title colored} FFT of input signal’ Slow & Flat Fading Iberandn rand" lis ‘spectfkyN); ‘spec_p=abs(spec/N); spe pisses. igure: 2 subplott4.1,1); plot spe pai ‘label( Frequeney(Elz)) (eclorfred}Slow and Flat Fading’); ‘ast & Flat Fading hf-randa(1.No}+randn( LN Lis hitilter(bab; yeahh, a spec_fflt(EN), spee_fprabs(spe_fIN), spee_fpshiftftshin(spec. fp; subplot4,1.2): plot fst spec_fpshi(l:N)}; ‘label Frequensy(H2))> title eolor red) ast and Plat Fading’; 20Sow & Frequency selective Fading ‘nl=randnérandn* is Ovrandnrandn'lis yesh; y2exd hs yisryleya spec {SI(y8N); spee_fsp-abs(spce_fN), spec_fepshiftAtuhit(apee fp), subplon4 1,3); Plot(shifspee_fipshin(1:N)), ‘label Frequeney(H2)); tilt eolor{red Slow and Frequency Selective Fading); ‘Fast &Frquencs Selective Fading al=randn(1.Nd+andn(1.N* aderandn(.No}tandn(L.ND* hileferaal); hi2=fiter(baa2y, flow thee axl "hs yiteytl+y2; ‘spec =i yfNy, spec_flp-abs(spe_f0N); spee_fIpshiftofsniR(spee_ tip; subplots); piotfsifuspec_AshiA(L:N)), Xlabel(Frequeney’H2)), tile eolorred) Fast and Frequency Selective Fading); a 2 Magnitude(y) Frequency(ta) Fast and Flat Fading Frequency(H2) Slow and Frequency Selective Fading Frequency(H2) Fast and Frequency Selective Fading Frequency(H2) apread dus Te — | magatiude and thane is ffroqueency (tepple N aeay Dote ajo. 2018 PageNo. —_J4 Pe?) = tb /xtk|* the Borttett tetimate ig eer E Taser eee Teo | aco | 2 wtnrx (ovine "| Toacher’s Signatre au Flow Chart Bartlett sethod Geennate input signal xtn)+ - noize tn) Compute the pudiodeprom 4h Input Aigpak usth N= 5/2 [Split ne N plik date Segment inte b( nen— overlapping) oat |__ segments of langth ‘L' | [ Fon. each Agrunt, compute the poiodogram hy computing the 6&7 With k= 4 amd L128 Compute the square of magoitude of FFT result avril divide dy L [coment dB] Plot the power specttiom wing pruccogram and —Bonttett method _ Welch _methed : Genwale aignal Cn)+ nelle n) Compute the mncdifisd paniodognam with tramning window NeBin Ontginal data lu =t | ol<0) error( Overapp is inva, end X=AL in(ntw1}A2*sin(n*w2) randa( LN); eperiodogram wind“hammingt); 222); PX=X2.*windmorm(wind) Prper=abstAPx.N)) "2; Be eas meee title( "color, blue} Estimated Speetrum of input signal using Modified Fae Seco sid on; Welch method SEXO} AL=I:L22; Some side spectrum S=(Ol/L)"2* pi Pt, nll; n0=(i-o*ts sectlloor(Lenthix)-L 00) for ietisect (al:n1 41-1). win/norm(win); Wow), peabs(fi( L225 Pevpet place alealind; end px_db=10.*log(on); hold on subplot®2.1.2); plot(wpx_ db), ‘label w(adas/sample)y, label Powertd3)): lile( (color bl.e} Estimated Spectrum of input signal using Welch smethodN=512;'Window~Hamming window/:L=128,Number of | sector 7,Overlipp-S0%@)), arid on: a am TIT TTT TTT TTT TTT TTT | bduessvoei # z st i ae ustopovng Sn ests dao wood aru [,_ — FT| BLOCK _DiAgeaM Dale toasta ae PageNo, 28 Teachers Signatur es aa Flows Gerencte data 404 swuand wnd. anne. Muteiply vain data wth cade aire clate. with coder | dod woded dota of ween ond _uene Musifply swith Pr sequence to | Apitad “the dlate wd tramrenine [He newton, multiply with PN seyuara ond olespsead the dati Madsiply with coded ard cade. | te sipanats awit amd wie dat iz clatte. ane debectid he Amechold to 220 j~ftttt ttt tty t le; close all cleerall, Rb=ed: BIG; ser! =(randi((0 1.0): a(randi(O 1.10), PNG 4 upl-Rup2"S6up3=224, TseTel(ups} EST, codel {11 11), e0de2=[1.0 1 0), vet zerosin): spre PN mat={): forein fuel (j)-=1 )-eodel: elsif userI¢.im-0 uct 1G,)-eodets ifuser2G)==1 222G.)-eode2s elseif wser26 iF 22, ene vell(vel vet _eereshapetuet LD: uct? reshape e221 fucrucl 1 rrue22 aengih(aue) ones 03} ‘usl=upsample(user up); ulusI(1,L:length(us})-(up3-); ‘ul_eonvconvt NeTength(ul_ conv), O-PS) Ts, subpot(3.2,1) plov(t.ul_conv): ylim[025 1.25), tilt usert data’ label Time(s), label Amplitudet¥)) uc2-upsamplo(user2,up3); ud-us2( II slength(as2){up3-I); wD eonv-conv(u2uy; subploi3.2.2, piot(t2 eon} ‘lin(-025 1.25) titleuser? dat slabel(Time(s)), ylabelAmplitude(V) clones); uel “upsample(ue!|_nup2); ce T=vel (I. :length)(0p2-1)} ‘vel_convconvel el); io3.2.3), plot.ue] conv): wlimg(-1.35 1.25), {hleCusert coded daw); be Tieets))s label Armplivudet Vs e2-upsemple(ue22 592} €22-ue2(1, Hength(ie2}p2-1): e2_conv-eone22, subpl3.2.8), role? conv Him1.25 125); ier se? coded daa, abe( Times); SlabelAmplitude¥)) psample(aue.up2): sacl=aat1 :heng(ae)up2-1)s, : eonv-von(ael subplei’.2,5), plowae con); ylimg-2.25 2.25); title¢commined data); label Time(s) label Amplitude(V)): -psanptPS ap rep engthp)-nts Peer Feomplae ‘yspreading for i=1:56,(length(ae_conv)-55) spread>[spread ac conv ii#$5).*, PNima=[PN_mat rf, end subplet3.2,6), plot(.PN mat) limg(-1.25 1.25); UileCPN sequence); label (Time(s); label Amplitude(V) Figure; subplot®2,1,)5 plov(t spread yhim( (228 225), tileSpreaded sequence’), label(Time(s), label Amplitude(¥)); ‘eDespreading Tos-lemtitspread); Stelos55 {spy =suindespC53*55)) ppl: end subplor2.1.2)" plowed) Yan(-2 25 2.25); te Despreade sequence) label Time(s) label Amplitude(V): code22-20de2; ‘code22(code22—0)"-1: k ust =2eros{ Lm: s22-zeros(t i, for iel:tel despl(ii¥3)“aki*3) reodel despa ki+3)-s(siit3)."eode22s iffsum(desp](ki'3)>0 us CAP else ust (R05 end ‘faunidesp2(sit+3)P0 vat yp-upsmplts 13 vinipeuell ups lengtust1_up}(op3-1)s sic ap commento a fit Sen. pio com Bats a sln.023 125) ‘cline ‘ylabel('Amplitude(V), Minit) pec ap co Slan(-023 125 ier coer at: stot Tine), ylabelCAmpliwde(\)5 2 _wpepsampe2 99 ‘Dr oprace aptelengtus2_epHupd)s ae sontaet snip ta eo Shim-025 525); title('user2 data’); -xlabel( Time(s)’; bet Ample) subplon(2.2.4% plt.u2_up_conv): ylimg[-025 1.25); tileuser? recovered data) label( Time(s) label Amplitad(¥)); ‘earl method secinloor ength(s)L.) (U2; Sane side spectrum Lys: #R(e{al-nl LIL), absTa 1 L/3)) 201; nell; pempet pace; end Px_abe10.*logipx); figure, plotile3,px_ ab, im({-50 66 abel (ki); slabel(Power(dB));, iid on: hold on; peti nt far i-t:seet ANAM -nE LDL; ‘prabsl fix:1/2)) 2; TL; xpd, be end x db=10.*log( px): Ploi(te3,px_ db. slim((-50 60); title {eolor{biue) Estimated Spectrunt ing Bartet method’); Time(s) user! coded data ‘006 Tieets) Ei a Spreaded sequon: ANT tH NH {Ht iL jinn HLL 01 0.005 Time(s) tusert data 01 (0.005 Time(s) sort recovered data Dat 005 Time(s) Dot 005 Time(s) Wa FB. Hy, = wu pw eCDARIA) coep pice a ae] entire seegth af bit sexflane Piet tne graphs ey, e7 eeppicerits | Date Expt. No. PageNo. 24 tea aj adopitie fine suened fo mtmic a dain fim ty | the dhuitned aod. 4 é fe wat_methal in that the filin uu only | aclap tid tased am , | ths basic idea hicbisond. LM $illin is to approach | | the optimum fulton welght, by. Hipdating the gillon wight (ia _a_maniee ta conieage te the optimus filler sight — |stats by aduoning amalt usiptile ( 2n0 in mest casss) ard, | ak sachs “atnpe, doy “finding the finding the gradient of cthe mean tquane owner the weight ane updated. ix, if the Lasse gradient 44 paritive , ik snaplite ttre ennot weld herp | bawuoding positively if the same weight 4 wutd fox _fusithen iterations uchich. means we “Teacher's Signature EXPERIMENT 6: IMS cle; lose all clear all; bels[1 025) t-(eandi(o 1}..0) °4BPSK input =awgn(xfSNRE: zeros.ph: ros.) yozeros( tn): ost) Umzeox UCeend) = U(Lende |): Dax yO wid * Us, at = di) 900 Fur eu oo Eii-ecvrets nd Ye VOPOR: YOO}: \ES]-LMS(n4.0.01.d) [yd.ed A Ea]oLMS(n.0.001,430): MiphYiypori vi egrt: igure; -stemi(end-Le2:end),dfend-le2:end) filled, xlimi(5.9 61) holdon stemn(end-1e2:end).x(end-1e2end)), slirn(5.9 61) Uile(Transmited and Received data);xlabel(Time(s):alabelAmpliadel V9); Jegend(Transnited BPSK Data’/Received BPSK Data’) figure, om(end-1e2:end),d(endate?-end) ied: slim. 9 61) hold on stemit(end-1e2:end).y(end-1e2:end), slimi[5.9 6) title Transmited Data & Output ofthe Equslizer)xlabel( Time(s) ylabel'Amplitude(V)): legend'Transmitted Data'Equalizer Output’) figure subplo(2.21) sent E1(1:2000)): ‘label( Iteration, ‘label nstantenous Square Exe ttl Squazedertoe For p>2.u=0.01 subglot2,22), stem(E2), Xlabei( eration’): ‘ylabeilnstantenous Square Pero), tile Squared err for p~2.0-0.001"; subgloi2.23) sten(E3(1:2000)); xluke(Ieration ‘labe\instantenous Square Error), ftle’Squared error for p-4.u=0.0; subplot2.24) stem(E4), latel(Ieration) ‘late\nstantenous Square Eero) figure subston2.2.1 ploy t(1:2000.1)), hold on; ploitw1(1:2000.2)}; {ik p=2,0-001": ‘label eration! ‘label(Coeicients): subpla(2,2.2), plan w2(-1)) hold on; plot(w2(.2)) ftlep-2,0=0.000s label eration Mabel(CooMients); subp 0122.3), pl 3(1:2000, 1) holdon; Plot(3(1:2000.2): lie(p=4.u-001"; labl(eration slabel(Coefticients, Flin pot(3(1:2000.3); bold on; plotw3(1:2000.4)), subylor2.24) plotiw4(-)) holdon; plotiwl(.2)) file p=4.u-0.01 label teration ‘ylakei(Cooicients)s hoe on; pow(43)); hold on; plu), suptile¢ Convergence of Channel Filter Coeffeiens); Function yes E}-LMSin.pandx) seeros(np epr0sta; Uc@send) = UUcend- 1), Udy =air, Ge wth)? U eG) = 46)-y0 swirl) = wi) Hu * ef) * Us Eqrettets end ae enn ie tomo kaneis Instantenous Square Error Instartenous Square Ercor ‘Squared Error of the Equalizer ip tusredortorforp=2.vs001 or for pi ¢ os| G05 i 5 ° zo a, FO teraton erator Squared erorforpedueOOt 5 Squarederor or | & § Sos 2 Bo 00 1000, 1500 2000 Iteration prtaroot : : dos Bast / s i a | } ae —______j bearer eseecee peur 001 VY CCoeficiens Coeficiente ° 800 1000 ¥500 2000 72... ae PageNo, _3 mee °F 7S. a Teachers Signature [Gewzatsaser_dats | Cae aT paradid anol add ‘pdote oo eee Had wyclie paige eord tramemit | data lat ig aug ceo | [Remove cyclic prep and convent \ hfe teniok te parole potable Te | Gums Hab fading wld eqpalizer (2) amc_oletect Take FET amd conunt dala phon serio eee Plat theonitizad worst case PAPR amd [Pare hamemilet Ae ‘EXSERIMENT le close all clear al n= 1286 SNR-25: xt-randi(0 M-1]Nan) Pape shi =10*log O(N): N13) 0x(31:34)-0; x(,64-05 XGISFI Ti x( 30-141, Te=pskdemod(s.M)s ‘Serial to parallel i: Tori H:lenghx im) ‘aprt)=tma(abs(x_iMti-)))2meanabsts_ Mi) 2 \0*log pape) XCAR is; %Parllel co seria p=¥_ifh_a(,end-:end); sopelen i herande(N,1 double) + randn(N,1 double) * Tis yl sph eps Yy_eprawaniyl_ep-SNR+I- measure) Y¥-ept Send) ‘Serial to parallel 0: yey fe; ‘Parallel to serial Date forj=1:N iGg)-(y $8 mG.15)+y_ MH 1G.30)V2"C+1i); y.fG.) dng), end y-fitat=y fix, SAARI) Oye 14) by Met (64) pskdemod{y_ Mx! M): {nl, En-biter( Tx), plow(papr th holden ploipape: ‘abel PAPR values Xabel(OFDM symbols, yiim(-S 30) legend(Thorticl PAPRPAPR of Received Sipna; oo Date. Teacher's Signature Soup yee. De Flour thant > | Goma at aeyane amd | |_porfeton_yenbel_roapping | [Zipanan are odd la ord Onn | dedi 1 yp [Crocampla te odd DE and | aon bide Open the WicerrmsT tutorval and | ana" bamerib. bio a Thi ane aid and oven bls i | re wivomat using furite | Dove EXPERIMENT 8: SDR le: ‘lea all: ‘lose all 106; b= 00e%; OSR=fb, 0: . OSR: | data-randi(0 1.12%), date_polar=2*data-l;_% Data Represented at NZR form for QPSK modulo, atal= data_polar]:2end); % odd bits data? data_polar(2:2-end); % even bits pulse-onea(1LOSR): p_data~zeros({n-1)®OSR-+1}; % SIP convertion of data - odd bits data |:0SR:endy~ata |; Ss p_datal=convip_datapulsey, ‘SIP convertion of data - even bits op datad-conv(p_datapulse. semperos 2*NY; sell Zend s.p se(2:2:end)-s_p_ data: 27¥scmax( se), | ‘Porte fist Feloset fia, Received Dara Dureut — SPecreut Ls ExpNo PageNo, ee Simucarion Of Mimo Systems Flows Chant: eS Generate ik tequene amd perform -eymbel rapping cual #o partableb canveruion Grenenate the State Time Block code rnaibuie and two bile ot a time with tach 4it_going thneugh ditfoume fading channel Add dlippourt reise for each bik mie ¥ (2) — TapNa at ] OTT EREREPEET EF i | : {{{1ittt Teacher's Signore ote SNI Mat; berandi((0 11.0); @-Pskmod(b.M) hi-zeros(,lengtvby2); h2=zeros(lengthyby2), nnl=zeros(JengthxbY2), dezeros(Jength(by2); for jot:tengtbtoy2 GK 12 [9_ thy |jjrandnrendn* i hagyerandnranda® is nl()-trandn-randn Leqr(SNR): 'n2G)>(earin¢randn* Lisa SNR)} Hib 1. 1:2)[M1G) A2G): HOG “hI: Uke) "TA qe) [016 n26)'L (ick, Heck 1) ek): kk) (h1G) 3G): lek +1 )-( orm ck+1. 3 2)*x(kikH.2)5 2: QI) @ r+) ek): end 4 d=pakdemed(r nM); [Dal ere}-bter(q_ db: Disp(‘Bit error rate. isp; dsp); Pe a Gienotate bit sequence amd. convert to _ppetan NRZ dol Ovonsarmple ithe date ond et the neporence afta’ 7! wile Greate a Arasic pulse amd advan ond delay by “dl wade [Fae the comratadtion of THE repens find advanced puke ax Re arrdh worvelabon off bik sequence arc Ecc ccc a a fe 7Ph (eine a thipe the aye] |e tebe i ght ‘EXPERIMENT 10: SYNCHRONIZATION le; ‘lear all, ‘lose all n=20; up=10; up: TI; d=2, ‘To=0.001; bst=randi((0 IL); bs-bsI: bs(bs—O}1; usones(1.up); bs upl=upsample(bs.up) ‘bs1_upebs upl(I,t-lengthibs_up! (up-1)); ‘bs uprconv(bs!_ up.) sest=bs_up(Tend); sso[zeros(1(T-1), es} for ieI:benghtbs_up3:end)) test b-bs_up(Teend) Pl=[u((8+t end), zeros(t ls zerost a), ud); Penabs(sum(est_b(:0.°P1)) Pleabssuitest{1:1).*P2)) theme forp-i33 TPH tes bbs up Tend Pe=abo(sumest(:0.*P 1): Pleats(sum(test1:1).*P2); ee i ‘break end end it@—) break; end end irePn" Tete: elseif e

You might also like