1. Trang chủ
  2. » Luận Văn - Báo Cáo

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

17 7 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

ĐẠI HỌC BÁCH KHOA HÀ NỘI TRƯỜNG ĐIỆN – ĐIỆN TỬ -  - BÁO CÁO THỰC HÀNH TÍN HIỆU VÀ HỆ THỐNG Giảng viên hướng dẫn : Sinh viên thực hiện: MSSV: Mã lớp thực hành: Năm học 2021-2022 download by : skknchat@gmail.com Bài 1: Tín hiệu liên tục I Hàm bước nhảy đơn vị (unit step) hàm dốc đơn vị (ramp) Bài Hàm bước nhảy đơn vị function x=u(t) x=zeros(size(t)); x(t>=0)=1; Bài Hàm dốc đơn vị function x=r(t) x=t.*u(t); Bài Vẽ đồ thị t=-10:0.001:10; y=5*u(t-2);plot(t,y) y=3*r(t+5); plot(t,y) download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong y=2*r(t+2.5)-5*r(t)+3*r(t-2)+u(t-4); plot(t,y) bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong y=sin(t).*(u(t+3)-u(t-3)); plot(t,y) Bài Sử dụng hàm (ustep) (uramp) để tạo tín hiệu có đồ thị cho trước Đồ thị 1: t=-10:10; plot(t,0.5*r(-abs(t)+4)); axis([-10 10 -0.5 2]) bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong Đồ thị 2: t=-10:0.1:10; y=0.5*r(-abs(t)+4)-u(abs(t)-8)+1; plot(t,y) bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong II Tín hiệu chẵn, lẻ: Bài Hàm trả phần chẵn lẻ function [ye,yo]=eo(y) yr=fliplr(y); ye=0.5*(y+yr); yo=0.5*(y-yr); Bài Tìm phần chẵn, lẻ vẽ đồ thị t=-10:0.001:10; y=2*r(t+2.5)-5*r(t)+3*r(t-2)+u(t-4); [ye yo]=eo(y); hold on;plot(t,ye,'m');plot(t,yo,'r'); legend('yo','ye'); bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong III Tổng tín hiệu tuần hồn a) w=pi/10; t=-10:pi/100:10; x1=1+1.5*cos(2*pi*w*t)-0.6*cos(4*w*t); plot(t,x1);grid on bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong - Tín hiệu khơng phải tín hiệu tuần hồn vì: hay Trong đó: b) w=pi/10; t=-10:pi/100:10; x2=1+1.5*cos(6*pi*t)-0.6*cos(4*w*t); plot(t,x2); grid on; bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong - Tín hiệu tín hiệu tuần hồn vì: hay Trong đó: IV Năng lượng, cơng suất tín hiệu: >>syms t; T=20; u(t)=heaviside(t); x(t)=exp(-t).*cos(2*pi*t).*u(t); f=(abs(x(t))).^2; E=int(f, t, -T/2, T/2) P=int(f, t, -T/2, T/2)/T bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong Kết quả: E = (exp(-20)*(2*pi^2 + 1)*(exp(20) - 1))/(2*(4*pi^2 + 1)) P = (exp(-20)*(2*pi^2 + 1)*(exp(20) - 1))/(40*(4*pi^2 + 1)) V Phép dịch, phép co giãn phép đảo tín hiệu: Bài >>t=-10:0.01:10; x=exp(-abs(t)); hold on;plot(t,x);plot(t-2,x);plot(t+2,x);grid on; Bài t=-10:0.01:10; x=exp(-abs(t)); hold on;plot(t,x);plot(2*t,x);plot(0.5*t,x);grid on; bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong Bài >>t=-10:0.01:10; x=exp(-abs(t)); hold on;plot(t,x);plot(-t,x);grid on; Bài 2: Tín hiệu âm nhạc Bài Tần số nốt nhạc: Viết chương trình chơi nhạc CCGGAAG , FFEEDDC-Fs=8000; t=[0:1/Fs:0.5]; Fc=262;Fd=294;Fe=330;Ff=349;Fg=392;Fa=440;Fb=494;Fj=0; C=cos(2*pi*Fc*t); D=cos(2*pi*Fd*t); E=cos(2*pi*Fe*t); F=cos(2*pi*Ff*t); G=cos(2*pi*Fg*t); A=cos(2*pi*Fa*t); B=cos(2*pi*Fb*t); Si=cos(2*pi*Fj*t); song=[C C G G A A G Si Si F F E E D D C Si Si]; sound(song,Fs) bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong Bài Fourier Series of a Trumpet a) t = linspace(0,1,44100);F=494; C=[0.1155 0.3417 0.1789 0.1232 0.0678 0.0473 0.026 0.0045 0.002]; Th=[-2.13 1.67 -2.545 661 -2.039 2.16 -1.0467 1.858 -2.39]; x = C*cos(2*pi*F*[1:9]'*t-Th'*ones(1,44100)); sound(x,44100); b) subplot(211), plot(t(1:200),x(1:200)) axis tight,grid on; c) t = linspace(0,1,44100);F=494; C=[0.1155 0.3417 0.1789 0.1232 0.0678 0.0473 0.026 0.0045 0.002]; Th=zeros(1,9); x = C*cos(2*pi*F*[1:9]'*t-Th'*ones(1,44100)); bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong sound(x,44100); subplot(211), plot(t(1:200),x(1:200)) grid on; Nhận xét: Sau đổi pha thành 0, tín hiệu âm thu có đồ thị âm thay đổi, nhiên âm nghe tai người không đổi Bài 3: Tích chập, phép biến đổi Fourier lọc tín hiệu I Tích chập lọc tín hiệu âm lọc thông thấp lý tưởng [data,Fs]=audioread('female_voice.wav'); data=data(:,1)'; Ts=1/Fs; sound(data,Fs); t=[-10:Ts:10]; wb=1500*2*pi; ht=wb/(2*pi)*sinc(wb*t/(2*pi)); y=conv(data,ht,'same'); y=y/max(abs(y)); sound(y,Fs); bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong download by : skknchat@gmail.com bao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thongbao.cao.thuc.hanh.tin.hieu.va.he.thong II Phép biến đổi Fourier lọc tín hiệu lọc Butterworth bậc Tự tạo hàm %FourierTransform.m function [f,X]=FourierTransform(t,x) ns=size(x,2); dt=t(2)-t(1) ; N=2*ns; df=1/(N*dt); xp=zeros(1,N) ; nns=sum(t

Ngày đăng: 08/01/2024, 01:12

Xem thêm:

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w