diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2825/CH15/EX15.7/Ex15_7.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2825/CH15/EX15.7/Ex15_7.sce')
-rwxr-xr-x | 2825/CH15/EX15.7/Ex15_7.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2825/CH15/EX15.7/Ex15_7.sce b/2825/CH15/EX15.7/Ex15_7.sce new file mode 100755 index 000000000..35d15103b --- /dev/null +++ b/2825/CH15/EX15.7/Ex15_7.sce @@ -0,0 +1,21 @@ +//Ex15_7 Pg-776
+clc
+
+disp("Given the equation")
+printf("\n E = 100*sin(628000*t) + 25*sin(621720*t) \n - 25*cos(634280*t)) \n")
+ m=50/100 //modulation factor in percentage
+ Ec=100 //carrier wave amplitude in V
+ Em=10 //modulated wave amplitude in V
+Fc=100000 //carier frequency in Hz
+Fm=1000 //modulating frequency in Hz
+pi=3.14
+
+omega_c=2*pi*Fc //carier frequency
+omega_m=2*pi*Em //modulating frequency
+
+disp("Now,putting these equation in the standard equations for modulated voltage wave,")
+disp(" e = Ec*sin(omega_c*t)+m*Ec/2*cos(omega_c-omega_m)*t-m*Ec/2*cos(omega_c-omega_m)*t")
+USB=omega_c+omega_m //upper sideband
+LSB=omega_c-omega_m //lower sideband
+mEc=m*Ec/2
+printf("\n = 100*sin(628000*t) + %.0f*sin(%.0f*t) \n - %.0f*cos(%.0f*t))",mEc,USB,mEc,LSB)
|