Tải bản đầy đủ (.pdf) (13 trang)

báo cáo thực hành tín hiệu và hệ thống báo cáo thí nghiệm tín hiệu hệ thống

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (3.13 MB, 13 trang )

<span class="text_page_counter">Trang 1</span><div class="page_container" data-page="1">

<b>ĐẠI HỌC BÁCH KHOA HÀ NỘITRƯỜNG ĐIỆN – ĐIỆN TỬ</b>

</div><span class="text_page_counter">Trang 2</span><div class="page_container" data-page="2">

<b>Bài 1: Tín hiệu liên tụcI. Hàm bước nhảy đơn vị (unit step) và hàm dốc đơn vị (ramp)</b>

<i><b>Bài 1: Viết hàm y ustep t để biểu diễn hàm bước nhảy đơn vị.</b></i>

  function y=ustep(t)

N=length(t); y=zeros(1,N); for i=1:N if(t(i)>0) y(i)=1; endend

<i><b>Bài 2: Viết hàm y uramp để biểu diễn hàm dốc đơn vị.</b></i>

 tfunction y=uramp(t)

<i><b>Bài 3: Vẽ đồ thị</b></i>

grid on;subplot(4,1,1);

plot(t, y1, 'r:', 'LineWidth', 2);subplot(4,1,2);

plot(t, y2, 'b--', 'LineWidth', 2);subplot(4,1,3);

plot(t, y3, 'g', 'LineWidth', 2);subplot(4,1,4);

plot(t, y3, 'r', 'LineWidth', 2);

</div><span class="text_page_counter">Trang 3</span><div class="page_container" data-page="3">

<i><b>Bài 4: Sử dụng hai hàm trên để tạo ra các tín hiệu có đồ thị như sau:</b></i>

</div><span class="text_page_counter">Trang 4</span><div class="page_container" data-page="4">

plot(t, y1, 'r:', 'LineWidth', 2);grid on;

plot(t, y2, 'b--', 'LineWidth', 2);

</div><span class="text_page_counter">Trang 5</span><div class="page_container" data-page="5">

Bài 2: Tìm phần chẵn, lẻ và vẽ đồ thị:

plot(t,y,'r' 'LineWidth', ,2);hold on

plot(t,ye,'g' 'LineWidth', ,2);hold on

plot(t,yo,'b--','LineWidth',2);grid on

legend('y','ye' 'yo', )

<b>III, Tổng của các tín hiệu tuần hồn</b>

hold on

</div><span class="text_page_counter">Trang 6</span><div class="page_container" data-page="6">

% vay x1 la tin hieu khong tuan hoan

%Dat y1=1.5*cos(6*pi*t) voi T1=1/3 va y2=0.6*(4*(pi/10)*t) voi T2=5 Ma%T1/T2=1/15 duoc bieu dien bang so nguyen nen co chu ki la T=5

E=double(int(f,t,-T/2,T/2))

</div><span class="text_page_counter">Trang 8</span><div class="page_container" data-page="8">

<b>Bài 2: Hàm tuyến tính</b>

<i><b>Bài 1: Tần số và nốt nhạc. viết một chương trình Matlab để chơi bản nhạc sau: CCGGAAG--, FFEEDDC</b></i>

—Fs= 100e3; Ts=1/Fs;t=0:Ts:0.8;

noted=cos(2*pi*Fd*t);notee=cos(2*pi*Fe*t);notef=cos(2*pi*Ff*t);

</div><span class="text_page_counter">Trang 9</span><div class="page_container" data-page="9">

note=[notec notec noteg noteg notea notea noteg ngat ngat notef notef notee notee noted noted notec ngat ngat];

c)

</div>

×