diff options
Diffstat (limited to '3542/CH9/EX9.1/Ex9_1.sce')
-rw-r--r-- | 3542/CH9/EX9.1/Ex9_1.sce | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/3542/CH9/EX9.1/Ex9_1.sce b/3542/CH9/EX9.1/Ex9_1.sce new file mode 100644 index 000000000..dd160e1ea --- /dev/null +++ b/3542/CH9/EX9.1/Ex9_1.sce @@ -0,0 +1,48 @@ +// Example no 9.1
+// To find the intermodulation frequencies generated
+// Page no. 451
+
+clc;
+clear all;
+
+// Given data
+f1=1930; // First carrier frequency
+f2=1932; // second carrier frequency
+F1=1920; // Lower frequency of the band
+F2=1940; // Upper frequency of the band
+
+for n=0:3
+ x1=(2*n+1)*f1-2*n*f2
+ if x1 < = F2 then
+ printf('\n IF frequency %0.0f MHz lies inside the band',x1);
+ else
+ printf('\n IF frequency %0.0f MHz lies outside the band',x1);
+ end
+end
+
+for n=0:3
+ x2=(2*n+2)*f1-(2*n+1)*f2
+ if x2 < = F2 then
+ printf('\n IF frequency %0.0f MHz lies inside the band',x2);
+ else
+ printf('\n IF frequency %0.0f MHz lies outside the band',x2);
+ end
+end
+
+for n=0:3
+ x3=(2*n+1)*f2-2*n*f1
+ if x3 < = F2 then
+ printf('\n IF frequency %0.0f MHz lies inside the band',x3);
+ else
+ printf('\n IF frequency %0.0f MHz lies outside the band',x3);
+ end
+end
+
+for n=0:3
+ x4=(2*n+2)*f2-(2*n+1)*f1
+ if x4 < = F2 then
+ printf('\n IF frequency %0.0f MHz lies inside the band',x4);
+ else
+ printf('\n IF frequency %0.0f MHz lies outside the band',x4);
+ end
+end
|