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. . Mó nguồn chương trỡnh Matlab: NRZ: file 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; CMI: file 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- HDB3: File . | 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. . Mó nguồn chương trỡnh Matlab 1. Mó NRZ file nrz function y nrz_l x for i 1 length x ifx i o temp i -1 else temp i 1 end end y temp 2. Mó CMI file 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 - Tai lieu chi xem duoc mot so trang dau. Vui long download file goc de xem toan bo cac trang 3 Mo HDB3 File function y hdb3 x next polar 1 b 0 so bit B giua 2 bit V i 1 while i length x if x i 1 temp i next_polar nextpolar -nextpolar b b 1 i i 1 else if i length x -3 x i 1 0 x i 2 0 x i 3 0 truong hop 4 bit 0 lien tiep if mod b 2 1 temp i 0 bit 0 temp i 1 0 bit 0 temp i 2 0 bit 0 temp i 3 -next_polar bit V nexlpolar -nexlpolar b 0 i i 4 else temp i nexlpolar bitB temp i 1 0 bit 0 temp i 2 0 bit 0 temp i 3 nextpolar bit V nextpolar -next polar b 0 i i 4 end else temp i 0 truong hop 3 bit ke tiep khac 000 i i 1 end end - 2 - Tai lieu chi xem duoc mot so trang dau. Vui long download file goc de xem toan bo cac trang end y temp 4. Mo AMI File function y ami x b 1 for i 1 length x ifx i 1 temp i b b -b else temp i 0 end end y temp 5. Mo Manchester File function y manchester x for i 1 length x if x i 1 temp 2 i-1 1 temp 2 i -1 else temp 2 i-1 -1 temp 2 i 1 end end y temp 6. Mo Polar RZ File polar RZ function y polar_RZ x for i 1 length x if x i 1 temp 2 i-1 1 temp 2 i 0 else temp 2 i-1 -1 temp 2 i 0 end - 3

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
112    86    3    10-05-2024
172    78    4    10-05-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.