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
98
99
100
101
102
103
104
|
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>modulate</title>
<style type="text/css" media="all">
@import url("scilab_code.css");
@import url("xml_code.css");
@import url("c_code.css");
@import url("style.css");
</style>
</head>
<body>
<div class="manualnavbar">
<table width="100%"><tr>
<td width="30%">
<span class="previous"><a href="midcross.html"><< midcross</a></span>
</td>
<td width="40%" class="center">
<span class="top"><a href="section_be19baaac84b122b8ad501d34462f5bf.html">FOSSEE Signal Processing Toolbox</a></span>
</td>
<td width="30%" class="next">
<span class="next"><a href="morlet.html">morlet >></a></span>
</td>
</tr></table>
<hr />
</div>
<span class="path"><a href="index.html">FOSSEE Signal Processing Toolbox</a> >> <a href="section_be19baaac84b122b8ad501d34462f5bf.html">FOSSEE Signal Processing Toolbox</a> > modulate</span>
<br /><br />
<div class="refnamediv"><h1 class="refname">modulate</h1>
<p class="refpurpose">Modulates signal according to the modulation method</p></div>
<div class="refsynopsisdiv"><h3 class="title">Calling Sequence</h3>
<div class="synopsis"><pre><span class="default">y</span><span class="default">=</span><span class="functionid">modulate</span><span class="default">(</span><span class="default">x</span><span class="default">,</span><span class="default">fc</span><span class="default">,</span><span class="default">fs</span><span class="default">,</span><span class="default">method</span><span class="default">,</span><span class="default">opt</span><span class="default">)</span>
<span class="default">[</span><span class="default">y</span><span class="default">,</span><span class="default">t</span><span class="default">]=</span><span class="functionid">modulate</span><span class="default">(</span><span class="default">x</span><span class="default">,</span><span class="default">fc</span><span class="default">,</span><span class="default">fs</span><span class="default">,</span><span class="default">method</span><span class="default">,</span><span class="default">opt</span><span class="default">)</span></pre></div></div>
<div class="refsection"><h3 class="title">Parameters</h3>
<dl></dl></div>
<div class="refsection"><h3 class="title">Description</h3>
<p class="para">[y,t]=modulate(x,fc,fs,method,opt)
Returns the modulated vector y and the time vector 't'
Modulation is performed according to the following table
METHOD MODULATION SCHEME
'am', Amplitude modulation, double side-band, suppressed carrier
'amdsb-sc' opt not used. This is the default method.
'amdsb-tc' Amplitude modulation, double side-band, transmitted carrier
opt is a scalar subtracted from x before multiplying x
with the carrier wave. It defaults to min(min(x)) so that
the input signal after offset is always non-negative
'amssb' Amplitude modulation, single side-band
OPT not used.
'fm' Frequency modulation
opt is the constant of frequency modulation.
opt = (fc/fs)*2*pi/max(max(abs(x))) by default
'pm' Phase modulation
OPT is the constant of phase modulation.
opt = pi/max(max(abs(x))) by default
Phase lies between -pi and +pi
'pwm' Pulse width modulation
opt='left' corresponds to left justified pulses.
opt='centered' correspondes to centered pulses.
The default value of opt is 'left'.
'ppm' Pulse position modulation
opt is a scalar between 0 and 1 which specifies the pulse
width in fractions of the carrier period with default value 0.1.
'qam' Quadrature amplitude modulation
opt is a matrix of the same size as X which is modulated in
quadrature with x.</p>
<p class="para">If x is a matrix, its columns are modulated.
Example
y =</p>
<p class="para">1. 1. 0. 0.
Author
Ankur Mallick</p></div>
<br />
<div class="manualnavbar">
<table width="100%">
<tr><td colspan="3" class="next"><a href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software&component=Documentation%20pages" class="ulink">Report an issue</a></td></tr>
<tr>
<td width="30%">
<span class="previous"><a href="midcross.html"><< midcross</a></span>
</td>
<td width="40%" class="center">
<span class="top"><a href="section_be19baaac84b122b8ad501d34462f5bf.html">FOSSEE Signal Processing Toolbox</a></span>
</td>
<td width="30%" class="next">
<span class="next"><a href="morlet.html">morlet >></a></span>
</td>
</tr></table>
<hr />
</div>
</body>
</html>
|