
Bài tập lớn - Kỹ thuật truyền dẫn
557
lượt xem 127
download
lượt xem 127
download

Bài tập lớn truyền dẫn Bài tập 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;...
Chủ đề:
Bình luận(0) Đăng nhập để gửi bình luận!

CÓ THỂ BẠN MUỐN DOWNLOAD