Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
104 views

Signals & Systems Lab#10: Signal Addition

This document contains the work of a student on Signals and Systems Lab #10. It includes 7 tasks involving basic operations on signals like addition, multiplication, and plotting impulse functions using MATLAB. The tasks have the student writing MATLAB code to generate and plot signals from given equations, performing addition and multiplication on signals, and plotting impulse functions over different intervals.

Uploaded by

Aqasha Khan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views

Signals & Systems Lab#10: Signal Addition

This document contains the work of a student on Signals and Systems Lab #10. It includes 7 tasks involving basic operations on signals like addition, multiplication, and plotting impulse functions using MATLAB. The tasks have the student writing MATLAB code to generate and plot signals from given equations, performing addition and multiplication on signals, and plotting impulse functions over different intervals.

Uploaded by

Aqasha Khan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Roll

NO:______________________
Teachers
Initials:________________
Marks Obtained:_________________

Signals & Systems Lab#10


Basic concept of signal addition/multiplication

Signal Addition:
Let we have two signals x1=[1 2 2 3] and x2=[2 -1 3]. As the dimensions of
the two signals are not same so they cannot be added with the simple +
sign. First we have to make the dimensions of the two signals equal
n=4;
x1=[1 2 2 3];
x2=[2 -1 3];
x1=[x1 zeros(1,4-length(x1))];
x2=[x2 zeros(1,4-length(x2))];
sum=x1+x2;
stem(sum)
The resultant signal is as follows

5
4.5
4
3.5
3
2.5
2
1.5
1
0.5
0

0.5

1.5

2.5

Task(5.1): Write a code in Matlab to generate and plot the following


sequence.
Y[n]= 2(n+2) (n-4)
Take the interval -2 n 4.
First plot the signal Y[n] without using matlab.

Task(5.2): First write the equation of the following figure and then
write the matlab code to plot it with the help of its equation.
6

0.5

1.5

2.5

3.5

4.5

Task(5.3) : With the help of Matlab, first plot the following


sequence .You have to take the interval by observing the
sequence. Technique used for signal addition should be used
for plotting the sequence below.
y[ n] =2 [n] + 5 [ n 3] + 2 [n +1] + 7
[n + 2]

Task(5.4): Let x1={1, 2, 3, 4, 5, 6}, n1= {0, 1, 2, 3, 4, 5},

x2 ={-1, -2, -3, -4, -5, -6} ,n2 = {-5, -4, -3, -2, -1, 0}
Determine and plot the following sequences

y = x1+x2
z = x1 * x2

Task(5.5) Write the Matlab code for the following sequence and show the
resultant figure.
Take the interval 0 n 20.
Y[n]= u[n] + u[n-10]

Task(5.6) Write the Matlab code for the following equation and show
the resultant figure. You have to take the interval by observing the
equation
Y[n] = u[n] + u[n-1] + u[n-2] + u[n-3] + u[n-4] + u[n-5]

Task(5.7) Implement the following equation with the help of Matlab


and plot the resultant figure.
Y[n] = u[n] + u[n-1] + u[n-2] - u[n-3] - u[n-4] - u[n-5]

You might also like