DSP2022 - Lab2-En
DSP2022 - Lab2-En
DSP2022 - Lab2-En
vn
Lab #2
Objectives
- Review lecture notes of discrete-time signal and system
- Do additional exercises on SciLab
Report
1. For each function or group of functions that you did, you have to capture the screen
as evidence that you did by yourself.
2. Then, you add all screen captures in a single word file.
3. Finally, you upload your report to BKeL on time. You should down-size the image
file to reduce the report file in order to be able to submit in BKeL.
---------------------------------
PART 1. REVIEW OF LECTURE NOTES
𝐸" = 0 |𝑥(𝑛)|#
%&'$
1
Digital Signal Processing [email protected]
§ Multiplication
𝐲(𝐧) = 𝐱 𝟏 (𝐧). 𝐱 𝟐 (𝐧)
§ Amplitude scaling
𝐲(𝐧) = 𝐚𝐱(𝐧)
---------------------------------
2
Digital Signal Processing [email protected]
Exercise 1. Let investigate the following functions on Scilab and briefly report their
functionalities and how to use it.
plot2d3(…)
min(…)
max(…)
subplot(…)
title(…)
xlabel(…)
ylabel(…)
bool2s(…)
deff(…)
Exercise 2. Try the following scripts on Scilab and report what your understanding
after observing the output.
scilab:> n = -5:5;
scilab:> msignal = bool2s (n >= 0);
scilab:> plot2d3(n, msignal)
Exercise 3. Try the following scripts on Scilab and report what your understanding
after observing the output.
scilab:> n = -5:5;
scilab:> msignal = bool2s (n == 0);
scilab:> plot2d3(n, msignal)
Exercise 4. Use Scilab to draw the unit ramp signal ur(n) for n=-5:5
3
Digital Signal Processing [email protected]
displayed in a single window. Please use title(), xlabel() and ylabel() to represent the
name of each plot.