Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
10 views
Tutorial 1 Q2 Q4 Matlab
Hdhdhe
Uploaded by
taliaalgul758
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Download now
Download
Save 10287_TUTORIAL_1_Q2_Q4_MATLAB For Later
Download
Save
Save 10287_TUTORIAL_1_Q2_Q4_MATLAB For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
10 views
Tutorial 1 Q2 Q4 Matlab
Hdhdhe
Uploaded by
taliaalgul758
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Download now
Download
Save 10287_TUTORIAL_1_Q2_Q4_MATLAB For Later
Carousel Previous
Carousel Next
Save
Save 10287_TUTORIAL_1_Q2_Q4_MATLAB For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 3
Search
Fullscreen
Tutorial 1
Q2
% Define the original signal based on the given graph
n = -4:4; % Range of n
x = [-3, 0, 0.5, 0, 1, 1, 1, 0.5, 0]; % Signal values corresponding to the given graph
% 1. Plot for x(n-3) (right shift by 3 units)
n_shifted_1 = n + 3; % Shift to the right by 3
figure;
subplot(2,2,1);
stem(n_shifted_1, x, 'filled');
title('x(n-3)');
xlabel('n');
ylabel('x(n-3)');
grid on;
% 2. Plot for x(3-n) (time reversal and shift)
n_reversed_2 = 3 - n; % Reverse and shift
subplot(2,2,2);
stem(n_reversed_2, x, 'filled');
title('x(3-n)');
xlabel('n');
ylabel('x(3-n)');
grid on;
% 3. Plot for x(2n) (compression by a factor of 2)
n_compressed_3 = -2:2; % New range after compression
x_compressed_3 = [x(1), x(3), x(5), x(7), x(9)]; % Pick every second point
subplot(2,2,3);
stem(n_compressed_3, x_compressed_3, 'filled');
title('x(2n)');
xlabel('n');
ylabel('x(2n)');
grid on;
% 4. Plot for x(n)u(3-n) (multiplication by a step function u(3-n))
u_4 = double(n <= 3); % Define the unit step function u(3-n)
x_u_4 = x .* u_4; % Element-wise multiplication
subplot(2,2,4);
stem(n, x_u_4, 'filled');
title('x(n)u(3-n)');
xlabel('n');
ylabel('x(n)u(3-n)');
grid on;
Tutorial 1 Q 4
% Define the range for n
n = -2:2;
% Define the original signal x(n) = 2^(-n)
x = 2.^(-n);
% 1. Compute y1(n) = 2x(n) + delta(n)
delta_n = (n == 0); % Define the delta function (impulse at n=0)
y1 = 2 * x + delta_n;
% 2. Compute y2(n) = x(n) * u(2 - n)
u_2_n = (n <= 2); % Define the step function u(2-n)
y2 = x .* u_2_n; % Element-wise multiplication
% Plot x(n), y1(n), and y2(n)
figure;
% Plot original signal x(n)
subplot(3,1,1);
stem(n, x, 'filled');
title('x(n) = 2^{-n} for -2 \leq n \leq 2');
xlabel('n');
ylabel('x(n)');
grid on;
% Plot y1(n) = 2x(n) + delta(n)
subplot(3,1,2);
stem(n, y1, 'filled');
title('y_1(n) = 2x(n) + \delta(n)');
xlabel('n');
ylabel('y_1(n)');
grid on;
% Plot y2(n) = x(n) * u(2-n)
subplot(3,1,3);
stem(n, y2, 'filled');
title('y_2(n) = x(n)u(2-n)');
xlabel('n');
ylabel('y_2(n)');
grid on;
You might also like
THL - 1 - Ece 4600
PDF
No ratings yet
THL - 1 - Ece 4600
21 pages
ECE 146A Lab 1
PDF
No ratings yet
ECE 146A Lab 1
12 pages
prac 3
PDF
No ratings yet
prac 3
22 pages
SOURCE Code
PDF
No ratings yet
SOURCE Code
5 pages
Exp 3
PDF
No ratings yet
Exp 3
6 pages
2019331513_2019331566
PDF
No ratings yet
2019331513_2019331566
44 pages
Kamran Signal Lab
PDF
No ratings yet
Kamran Signal Lab
7 pages
S-S Lab-04.pdf
PDF
No ratings yet
S-S Lab-04.pdf
4 pages
200021344_EEE4702_exp01
PDF
No ratings yet
200021344_EEE4702_exp01
23 pages
SyC_lab_1
PDF
No ratings yet
SyC_lab_1
10 pages
Activity#3-Operations On Sequences
PDF
No ratings yet
Activity#3-Operations On Sequences
7 pages
Naman 3
PDF
No ratings yet
Naman 3
7 pages
S_S.Lab.4
PDF
No ratings yet
S_S.Lab.4
12 pages
DSP lab manual3
PDF
No ratings yet
DSP lab manual3
85 pages
Lab Report
PDF
No ratings yet
Lab Report
12 pages
DSP Lab Manual
PDF
No ratings yet
DSP Lab Manual
51 pages
Signal Lab
PDF
No ratings yet
Signal Lab
8 pages
Signal n Systems Lab
PDF
No ratings yet
Signal n Systems Lab
27 pages
Dsp Final Viva Named
PDF
No ratings yet
Dsp Final Viva Named
38 pages
Lab4
PDF
No ratings yet
Lab4
20 pages
Experiment No. 2 Elementary Discrete-Time Signals Objectives
PDF
No ratings yet
Experiment No. 2 Elementary Discrete-Time Signals Objectives
19 pages
Lab No 06
PDF
No ratings yet
Lab No 06
19 pages
Lab 3 SIGNAL TRANSFORMATION Usman
PDF
No ratings yet
Lab 3 SIGNAL TRANSFORMATION Usman
16 pages
Signals and Systems - Prof - Manisha Joshi
PDF
No ratings yet
Signals and Systems - Prof - Manisha Joshi
16 pages
Signals and Systems - Prof - Manisha Joshi
PDF
No ratings yet
Signals and Systems - Prof - Manisha Joshi
16 pages
Signals and Systems - Prof - Manisha Joshi
PDF
No ratings yet
Signals and Systems - Prof - Manisha Joshi
16 pages
LAB-03 EE-311 Signal and Systems PDF
PDF
No ratings yet
LAB-03 EE-311 Signal and Systems PDF
12 pages
Signals and Systems - Prof - Manisha Joshi
PDF
No ratings yet
Signals and Systems - Prof - Manisha Joshi
16 pages
S&S Assignments
PDF
No ratings yet
S&S Assignments
19 pages
Modul Adsp Lab 2 PDF
PDF
No ratings yet
Modul Adsp Lab 2 PDF
4 pages
DSP LAB
PDF
No ratings yet
DSP LAB
5 pages
In Lab Task #01:: All All
PDF
No ratings yet
In Lab Task #01:: All All
6 pages
Lab - Assignment1 Signals and Systems
PDF
No ratings yet
Lab - Assignment1 Signals and Systems
12 pages
Digital Signal Processing Lab - DR - R Kumaraswamy
PDF
No ratings yet
Digital Signal Processing Lab - DR - R Kumaraswamy
56 pages
Lab No 6
PDF
No ratings yet
Lab No 6
12 pages
L1 - Signals (1) (During Lecture)
PDF
No ratings yet
L1 - Signals (1) (During Lecture)
2 pages
Unit Impulse
PDF
No ratings yet
Unit Impulse
7 pages
DSP File
PDF
No ratings yet
DSP File
28 pages
UE205021 Aryan Malhotra DSP FILE
PDF
No ratings yet
UE205021 Aryan Malhotra DSP FILE
22 pages
PCS Programs
PDF
No ratings yet
PCS Programs
9 pages
Lab 04
PDF
No ratings yet
Lab 04
7 pages
Lab 2 DSP. Linear Time-Invariant System
PDF
No ratings yet
Lab 2 DSP. Linear Time-Invariant System
15 pages
Module 2
PDF
No ratings yet
Module 2
5 pages
Exp 1
PDF
No ratings yet
Exp 1
13 pages
Digital Signal Processing: Name: Roll No: Aim
PDF
No ratings yet
Digital Signal Processing: Name: Roll No: Aim
16 pages
CT and DT Operations
PDF
No ratings yet
CT and DT Operations
9 pages
DSP Lab Expt 1 Using Function - 3-13
PDF
No ratings yet
DSP Lab Expt 1 Using Function - 3-13
11 pages
439-lab0
PDF
No ratings yet
439-lab0
7 pages
Lab 9
PDF
No ratings yet
Lab 9
13 pages
EEE_4702_Lab_1
PDF
No ratings yet
EEE_4702_Lab_1
12 pages
LABREPORT3
PDF
No ratings yet
LABREPORT3
16 pages
DSP EXP. 5 Solution
PDF
No ratings yet
DSP EXP. 5 Solution
10 pages
ESET3302 Lab1
PDF
No ratings yet
ESET3302 Lab1
7 pages
Signals & Systems Lab.-Manual
PDF
No ratings yet
Signals & Systems Lab.-Manual
15 pages
SS Codes Graphs
PDF
No ratings yet
SS Codes Graphs
17 pages
Digital Signal Processing - DR - Prarthan Mehta
PDF
No ratings yet
Digital Signal Processing - DR - Prarthan Mehta
61 pages
Divyansh Signal File.. (2) - Combined
PDF
No ratings yet
Divyansh Signal File.. (2) - Combined
27 pages
A-level Maths Revision: Cheeky Revision Shortcuts
From Everand
A-level Maths Revision: Cheeky Revision Shortcuts
Scool Revision
3.5/5 (8)
The Logical Solution Syracuse Conjecture
From Everand
The Logical Solution Syracuse Conjecture
Rolando Zucchini
No ratings yet
Applications of Derivatives Errors and Approximation (Calculus) Mathematics Question Bank
From Everand
Applications of Derivatives Errors and Approximation (Calculus) Mathematics Question Bank
Mohmmad Khaja Shareef
No ratings yet