0% found this document useful (0 votes)
72 views3 pages

Given Signals (Discrete and Continous Domain) : Experiment-3 Aim-To Generate Addition and Subbtraction of Two

The document describes an experiment that uses Scilab to generate the addition and subtraction of two given signals in both the discrete and continuous domains. The program defines two signals, adds and subtracts them, and plots the results across six subplots to show the original signals, their addition, and their subtraction in both the discrete and continuous cases.

Uploaded by

Rohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
72 views3 pages

Given Signals (Discrete and Continous Domain) : Experiment-3 Aim-To Generate Addition and Subbtraction of Two

The document describes an experiment that uses Scilab to generate the addition and subtraction of two given signals in both the discrete and continuous domains. The program defines two signals, adds and subtracts them, and plots the results across six subplots to show the original signals, their addition, and their subtraction in both the discrete and continuous cases.

Uploaded by

Rohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 3

Experiment-3

Aim- To generate addition and subbtraction of two


given
signals ( discrete and continous domain)
Tools- A computer with scilab installed
Program-
//to generate addition and subbtraction of two given signal (discrete and
continuous domain)
n1=0:10;
y1=[ones(1,5),zeros(1,6)];
y2=[zeros(1,3),ones(1,4),zeros(1,4)];
y3=y1+y2;
y4=y1-y2;
subplot(2,3,1);
plot2d3(n1,y1);
xlabel('time');
ylabel('amplitude');
title('1st signal');
subplot(2,3,2);
plot2d3(n1,y2);
xlabel('time');
ylabel('amplitude');
title('2nd signal');
subplot(2,3,3);
plot2d3(n1,y3);
xlabel('time');
ylabel('amplitude');
title('addition of two discrete signals');
subplot(2,3,4);
plot(n1,y3);
xlabel('time');
ylabel('amplitude');
title('addition of two continous signal');
subplot(2,3,5);
plot2d3(n1,y4);
xlabel('time');
ylabel('amplitude');
title('subbtraction of two discrete signals');
subplot(2,3,6);
plot(n1,y4);
xlabel('time');
ylabel('amplitude');
title('subbtraction of two continous signals ');
Output-

You might also like