You are on page 1of 11

Bài tập lớn môn tín hiệu và hệ thống

Giảng viên:Huỳnh Văn Hóa

Họ tên MSSV Lớp


Đặng Ngọc Dũng 1951150054 KM19
Hoàng Đặng Đình Tuấn 1951150043 KM19
Võ Hoàng Hải 1951150015 KM19
Lê Chí Thắng 1951150092 KM19

* Đề cương chi tiết:


-Thời gian làm việc: 2 tuần
-Phân công công việc: + Đặng Ngọc Dũng: 3.7-6
+ Hoàng Đặng Đình Tuấn: 8.3-4
+ Võ Hoàng Hải: 2.3-3
+ Lê Chí Thắng: 3.5-5
* Nội dung làm việc :
I. Bài 3.7-6: Find the unit impulse response h[n] of systems specified by the
following equations:
y[n] −6y[n−1] +25y[n−2] = 2x[n] −4x[n−1]
Nội dung và cách làm
* Tài liệu đã tham khảo:
- [PDF]Theory and Problems of Signals and Systems.pdf
- B. P Lathi - Linear systems and signals-Oxford University Press (2017)
* Giải bằng phương pháp toán học:
Biển diễn bằng matlab:
>>n=40;
>>num=[2 -4 0];
>>den=[1 -6 25];
>>h=impz(num,den,N);
>>stem(h);
Matlab:

II.Bài 8.3-4: A TV signal (video and audio) has a bandwidth of 4.5 MHz. This
signal is sampled, quantized, and binary-coded.
(a) Determine the sampling rate if the signal is to be sampled at a rate 20% above
the Nyquist rate.
(b) If the samples are quantized into 1024 levels, what number of binary pulses is
required to encode each sample?
(c) Determine the binary pulse rate (bits/s) of the binary-coded signal.

1 Tín hiệu tv (video và âm thanh) có băng thông 4,5 mhz. Tín hiệu này được
lấy mẫu, lượng tử và mã hóa nhị phân.

(a) Xác định tỷ lệ lấy mẫu nếu tín hiệu được lấy mẫu ở mức cao hơn tỷ lệ
nyquist 20%.

(b) Nếu mẫu được lượng tử thành 1024 mức (Q=1024), số lượng xung nhị
phân cần thiết để mã hóa mỗi mẫu là bao nhiêu?
(c) Xác định tốc độ xung nhị phân (bit/s) của tín hiệu mã nhị phân

NỘI DUNG VÀ CÁCH LÀM


Tìm hiểu về cách để tính các bài toán liên quan đến việc lấy mẫu.
Tính The sampling rate (tỉ lệ lấy mẫu), the Nyquist rate, number of binary pulses,
the binary pulse rate.
a. The bandwidth B = 4.5 MHz.
The Nyquist rate fs = 2B = 2*(4.5 MHz) = 9 MHz.
But sampling rate should be 20% higher than Nyquist rate, the sampling rate
is fs = 1.2 × 9 MHz = 10.8 MHz.
b. Q = 1024 = 2n
Number of binary pulses is required to encode each sample
n=log 2 1024 = 10 bit or binary pulses are needed to encode each sample.

c. The binary pulse rate (bits/s) of the binary-coded signal is R = nfs=


10.8×106 [MS/s] × 10 [bit/S]= 108 Mbit/ = 108 Mbits/s.

THỰC HIỆN THÔNG QUA MATLAB:


function varargout = baitap(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @baitap_OpeningFcn, ...
'gui_OutputFcn', @baitap_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
function baitap_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
guidata(hObject, handles);
function varargout = baitap_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;
function bwa_Callback(hObject, eventdata, handles)
function bwa_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function nsb_Callback(hObject, eventdata, handles)
function nsb_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function src_Callback(hObject, eventdata, handles)
function src_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function cau1_Callback(hObject, eventdata, handles)
b = str2num(get(handles.bwa,'String'));%lay bandwidth bang lenh get va str2num
tu chuoi sang ki tu
nr = 2*b;%cong thuc tinh nyquist rate
set(handles.kq,'String',nr);%dat gia tri cho doi tuong voi tag kqa bang cach su dung
gia tri nr
function caua_Callback(hObject, eventdata, handles)
nra = str2num(get(handles.nra,'String'));%lay nyquist rate bang lenh get va
str2num tu chuoi sang ki tu
ns = nra*1.2;%cong thuc tinh Sampling rate
set(handles.kqa,'String',ns);
function caub_Callback(hObject, eventdata, handles)
Q = str2num(get(handles.nsb,'String'));%lay Q bang lenh get va str2num tu chuoi
sang ki tu
n = log2(Q);%cong thuc tinh number bits
set(handles.kqb,'String',n);
function cauc_Callback(hObject, eventdata, handles)
src = str2num(get(handles.src,'String'));
nob = str2num(get(handles.nob,'String'));
nopps = src*nob;%cong thuc tinh bit rate
set(handles.kqc,'String',nopps);
function nra_Callback(hObject, eventdata, handles)
function nra_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function nobdc_Callback(hObject, eventdata, handles)
function nobdc_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function nob_Callback(hObject, eventdata, handles)
function nob_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
III.Bài 2.3-3: Find the unit impulse response of a system
specified by the equation
(D2 +5D+6)y(t) = (D2 +7D+11)x(t)
Nội dung và cách làm
* Tài liệu đã tham khảo:
- [PDF]Theory and Problems of Signals and Systems.pdf
- B. P Lathi - Linear systems and signals-Oxford University Press (2017)
Phương pháp toán học :
The characteristic equation is 𝜆2 + 5𝜆 + 6 = (𝜆 + 2)(𝜆 + 3) = 0
Thus,
𝑦𝑛(𝑡) = c1e-2t + c2e-3t
𝑦′𝑛(𝑡) = -2𝑐1𝑒-2t - 3𝑐2𝑒-3t
Setting t=0, and substituting 𝑦(0) = 0, 𝑦′(0) = 1 (these initial conditions are
obtained using the fact
that degree of characteristic polynomial is N=2) we get –
0 = 𝑐1 + 𝑐2
1 = -2𝑐1 - 3𝑐2} ⇒ 𝑐1=1 ; c2=-1
Therefore, 𝑦𝑛(𝑡) = 𝑒-2t – 𝑒-3t
Hence, impulse response is specified as –
ℎ(𝑡) = 𝑏𝑛𝛿(𝑡) + [𝑃(𝐷)𝑦𝑛(𝑡)]𝑢(𝑡) = 𝛿(𝑡) + [𝑦′′𝑛(𝑡) + 7𝑦′𝑛(𝑡) + 11𝑦𝑛(𝑡)]𝑢(𝑡)
= 𝛿(𝑡) + (𝑒-2t+ 𝑒-3t)𝑢(𝑡)
Thực hiện thông qua Matlab:

IV:Bài 3.5-5: Solve the following equation recursively (first three terms only):
y[n+2] +3y[n+1] +2y[n] = x[n+2] +3x[n+1] +3x[n]
Nội dung và cách làm:
* Tài liệu đã tham khảo:
- [PDF]Theory and Problems of Signals and Systems.pdf
- B. P Lathi - Linear systems and signals-Oxford University Press (2017)
Phương pháp toán học:

You might also like