diff options
Diffstat (limited to '2414/CH9/EX9.5/Ex9_5.sce')
-rwxr-xr-x | 2414/CH9/EX9.5/Ex9_5.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2414/CH9/EX9.5/Ex9_5.sce b/2414/CH9/EX9.5/Ex9_5.sce new file mode 100755 index 000000000..4270ede38 --- /dev/null +++ b/2414/CH9/EX9.5/Ex9_5.sce @@ -0,0 +1,19 @@ +clc;
+close();
+clear();
+//page no 311
+//prob no. 9.5
+Vfs=10; //Volts
+N=8;
+delta_Xb=2^(-N+1);
+mprintf('(a) The normalised bipolar step size is %f\n ',delta_Xb);
+delta_vb=delta_Xb*Vfs;
+mprintf('(b) The actual step size is %.2f mV\n ',delta_vb*10^3);
+Xbmax=1-delta_Xb;
+mprintf('(c) The normalized maximum quantized level is %f\n ',Xbmax);
+vbmax=Xbmax*Vfs;
+mprintf('(d) The actual maximum quantized level is %f V\n ',vbmax);
+Eb=delta_Xb/2;
+mprintf('(e) The normalized peak error is %f\n ',Eb);
+eb=Eb*Vfs;
+mprintf('(f) The actual peak error is %.2f mV ',eb*10^3);
|