LabEx1(Report)



tải về 92 Kb.
trang1/5
Chuyển đổi dữ liệu31.05.2023
Kích92 Kb.
#54784
  1   2   3   4   5
LABEX1


Name:
Section:
Laboratory Exercise 1
DISCRETE-TIME SIGNALS: TIME-DOMAIN REPRESENTATION
1.1 GENERATION OF SEQUENCES
Project 1.1 Unit sample and unit step sequences
clf;
n = -10:20;
u = [zeros(1,10) 1 zeros(1,20)];
stem(n,u);
xlabel ('Time index n'); ylabel ('Amplitude');
title ('Unit Sample Sequence');
axis ([-10 20 0 1.2]);
Answers:
Q1.1 The unit sample sequence u[n] generated by running Program P1_1 is shown below:

Q1.2 The purpose of clf com­mand is - Clear figure
The purpose of axis com­mand is - Set axis limits and aspect ratios
The purpose of title com­mand is - Add title
The purpose of xlabel com­mand is - Label x-axis
The purpose of ylabel com­mand is - Label y-axis
Q1.3 The modified Program P1_1 to generate a delayed unit sample sequence ud[n] with a delay of 11 samples is given below along with the sequence generated by running this program.

clf;
n = -10:20;


u = [zeros(1,10+11) 1 zeros(1,20-11)];
stem(n,u);
xlabel('Time index n');ylabel('Amplitude');
title('Unit Sample Sequence');
axis([-10 20 0 1.2]);



Q1.4 The modified Program P1_1 to generate a unit step sequence s[n] is given below along with the sequence generated by running this program.

clf;
n = -10:20;


u = [zeros(1,10) 1 ones(1,20)];
stem(n,u);
xlabel('Time index n');ylabel('Amplitude');
title('Unit Sample Sequence');
axis([-10 20 0 1.2]);



Q1.5 The modified Program P1_1 to generate a unit step sequence sd[n] with an ad­vance of 7 samples is given below along with the sequence generated by running this program.

clf;
n = -10:20;


u = [zeros(1,10+7) 1 ones(1,20-7)];
stem(n,u);
xlabel('Time index n');ylabel('Amplitude');
title('Unit Sample Sequence');
axis([-10 20 0 1.2]);




tải về 92 Kb.

Chia sẻ với bạn bè của bạn:
  1   2   3   4   5




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương