diff options
Diffstat (limited to '3812/CH2/EX2.3')
-rw-r--r-- | 3812/CH2/EX2.3/2_3.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/3812/CH2/EX2.3/2_3.sce b/3812/CH2/EX2.3/2_3.sce new file mode 100644 index 000000000..ffe4f88c5 --- /dev/null +++ b/3812/CH2/EX2.3/2_3.sce @@ -0,0 +1,24 @@ +//Example 2_3
+//Find the convolution of two continuous time signal
+clc;
+t=-8:1/100:8;
+for i=1:length (t)
+x(i)=exp(-abs(t(i)));
+if t(i)>=1 then
+h(i)=exp(-2*t(i));
+else
+h(i)=0;
+end
+end
+t1=t;
+y= convol (x,h)
+figure
+plot2d(t1,h);
+title('Impul seresponce');
+figure
+plot2d(t,x);
+title('Input signal');
+figure
+t2=-16:1/100:16
+plot2d(t2,y);
+title('Output signal');
|