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">N=length(t); y=zeros(1,N); for i=1:N if(t(i)>0) y(i)=1; endend
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">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"><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>