diff options
Diffstat (limited to '2414/CH9/EX9.4/Ex9_4.sce')
-rwxr-xr-x | 2414/CH9/EX9.4/Ex9_4.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2414/CH9/EX9.4/Ex9_4.sce b/2414/CH9/EX9.4/Ex9_4.sce new file mode 100755 index 000000000..36723e171 --- /dev/null +++ b/2414/CH9/EX9.4/Ex9_4.sce @@ -0,0 +1,19 @@ +clc;
+close();
+clear();
+//page no 310
+//prob no. 9.4
+N=8;
+Vfs=20; //Volts
+delta_Xu=2^-N;
+mprintf('(a) The normalised unipolar step size is %f\n ',delta_Xu);
+delta_vu=delta_Xu*Vfs;
+mprintf('(b) The actual step size is %.2f mV\n ',delta_vu*10^3);
+Xumax=1-delta_Xu;
+mprintf('(c) The normalized maximum quantized level is %f\n ',Xumax);
+vumax=Xumax*Vfs;
+mprintf('(d) The actual maximum quantized level is %f V\n ',vumax);
+Eu=delta_Xu/2;
+mprintf('(e) The normalized peak error is %f\n ',Eu);
+eu=Eu*Vfs;
+mprintf('(f) The actual peak error is %.2f mV ',eu*10^3);
|