summaryrefslogtreecommitdiff
path: root/851/CH4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /851/CH4
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '851/CH4')
-rwxr-xr-x851/CH4/EX4.1/Example4_1.sce29
-rwxr-xr-x851/CH4/EX4.3/Example4_3.sce17
2 files changed, 46 insertions, 0 deletions
diff --git a/851/CH4/EX4.1/Example4_1.sce b/851/CH4/EX4.1/Example4_1.sce
new file mode 100755
index 000000000..142ba3e6c
--- /dev/null
+++ b/851/CH4/EX4.1/Example4_1.sce
@@ -0,0 +1,29 @@
+//clear//
+//Caption:Bound on Aliasing error for Time-shifted sinc pulse
+//Example4.1:Maximum bound on aliasing error for sinc pulse
+clc;
+close;
+t = -1.5:0.01:2.5;
+g = 2*sinc_new(2*t-1);
+disp(max(g),'Aliasing error cannot exceed max|g(t)|')
+f = -1:0.01:1;
+G = [0,0,0,0,ones(1,length(f)),0,0,0,0];
+f1 = -1.04:0.01:1.04;
+subplot(2,1,1)
+a=gca();
+a.data_bounds =[-3,-1;2,2];
+a.x_location = "origin"
+a.y_location = "origin"
+plot2d(t,g)
+xlabel(' t')
+ylabel(' g(t)')
+title('Figure 4.8 (a) Sinc pulse g(t)')
+subplot(2,1,2)
+a=gca();
+a.data_bounds =[-2,0;2,2];
+a.x_location = "origin"
+a.y_location = "origin"
+plot2d2(f1,G)
+xlabel(' f')
+ylabel(' G(f)')
+title('Figure 4.8 (b) Amplitude spectrum |G(f)|')
diff --git a/851/CH4/EX4.3/Example4_3.sce b/851/CH4/EX4.3/Example4_3.sce
new file mode 100755
index 000000000..d80adfd3b
--- /dev/null
+++ b/851/CH4/EX4.3/Example4_3.sce
@@ -0,0 +1,17 @@
+//clear//
+//Caption:Equalizer to compensate Aperture effect
+//Example4.3:Equalizer to Compensate for aperture effect
+clc;
+close;
+T_Ts = 0.01:0.01:0.6;
+//E = 1/(sinc_new(0.5*T_Ts));
+E(1) =1;
+for i = 2:length(T_Ts)
+ E(i) = ((%pi/2)*T_Ts(i))/(sin((%pi/2)*T_Ts(i)));
+end
+a =gca();
+a.data_bounds = [0,0.8;0.8,1.2];
+plot2d(T_Ts,E,5)
+xlabel('Duty cycle T/Ts')
+ylabel('1/sinc(0.5(T/Ts))')
+title('Figure 4.16 Normalized equalization (to compensate for aperture effect) plotted versus T/Ts')