Bài tập về môn học: Kỹ Thuật truyền dẫn
Bài I: Biểu diễn tớn hiệu của một số mó đường dõy và vẽ phổ của chỳng. I.1. Mó nguồn chương trỡnh Matlab:
1.Mó NRZ: file nrz_l.m function y=nrz_l(x) for i=1:length(x) if x(i)==0 temp(i) = -1; else temp(i) = +1; end; end y=temp; 2.Mó CMI: file cmi_1.m function y = cmi(x); polar = +1; %chon cuc tinh cua bit 1 dau tien la duong for i=1:length(x) if x(i)==1 temp(2*i-1) = polar; temp(2*i) = polar; polar = -polar; %xac dinh cuc tinh cho bit 1 tiep theo else temp(2*i-1) = -1; temp(2*i) = +1; end end y = temp;
-1-
3.Mó HDB3: File hdb3.m...