summaryrefslogtreecommitdiff
path: root/help/en_US/ssbdemod.xml
blob: 1ce9be848dc0840b8836a94b939ccecdddb414cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0" encoding="UTF-8"?>

<!--
 *
 * This help file was generated from ssbdemod.sci using help_from_sci().
 *
 -->

<refentry version="5.0-subset Scilab" xml:id="ssbdemod" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns3="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:scilab="http://www.scilab.org"
          xmlns:db="http://docbook.org/ns/docbook">

  <refnamediv>
    <refname>ssbdemod</refname>
    <refpurpose>This function performs Single Side Band Amplitude Demodulation</refpurpose>
  </refnamediv>


<refsection>
   <title>Description</title>
   <para>
Z = SSBDEMOD(Y,Fc,Fs)
demodulates the single sideband amplitude modulated signal Y
with the carrier frequency Fc (Hz).
Sample frequency Fs (Hz). zero initial phase (ini_phase).
The modulated signal can be an upper or lower sideband signal.
A lowpass butterworth filter is used in the demodulation.
   </para>
   <para>
Z = SSBDEMOD(Y,Fc,Fs,INI_PHASE)
adds an extra argument the initial phase (rad) of the modulated signal.
   </para>
   <para>
Z = SSBDEMOD(Y,Fc,Fs,INI_PHASE,NUM,DEN)
adds extra arguments about the filter specifications
i.e., the numerator and denominator of the lowpass filter.
   </para>
   <para>
Fs must satisfy Fs &gt;2*(Fc + BW), where BW is the bandwidth of the
modulating signal.
   </para>
   <para>
   </para>
   <para>
</para>
</refsection>

<refsection>
   <title>Examples</title>
   <programlisting role="example"><![CDATA[

Fs =200;
t = [0:2*Fs+1]'/Fs;
ini_phase = 5;
Fc = 20;
fm1= 2;
fm2= 3
x =sin(2*fm1*%pi*t)+sin(2*fm2*%pi*t);
y = ssbmod(x,Fc,Fs,ini_phase);
o = ssbdemod(y,Fc,Fs,ini_phase);
z = fft(y);
zz =abs(z(1:length(z)/2+1 ));
axis = (0:Fs/length(zz):Fs -(Fs/length(zz)))/2;

figure
subplot(3,1,1); plot(x);
title(' Message signal');
subplot(3,1,2); plot(y);
title('Amplitude modulated signal');
subplot(3,1,3); plot(axis,zz);
title('Spectrum of amplitude modulated signal');
z1 =fft(o);
zz1 =abs(z1(1:length(z1)/2+1 ));
axis = (0:Fs/length(zz1):Fs -(Fs/length(zz1)))/2;
figure
subplot(3,1,1); plot(y);
title(' Modulated signal');
subplot(3,1,2); plot(o);
title('Demodulated signal');
subplot(3,1,3); plot(axis,zz1);
title('Spectrum of Demodulated signal');

   ]]></programlisting>
</refsection>

<refsection>
   <title>Authors</title>
   <simplelist type="vert">
   <member>Pola Lakshmi Priyanka, IIT Bombay</member>
   </simplelist>
</refsection>
</refentry>