-
Notifications
You must be signed in to change notification settings - Fork 3
/
plot-curves-frequency_modulation+physics.tex
59 lines (53 loc) · 1.31 KB
/
plot-curves-frequency_modulation+physics.tex
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
% https://raw.githubusercontent.com/PetarV-/TikZ/master/Frequency%20modulation/frequency_modulation.tex
\documentclass[crop, tikz]{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\definecolor{olivegreen}{rgb}{0,0.6,0}
\begin{document}
\begin{tikzpicture}[samples=1000, domain=0:10]
\begin{axis}[
width=11cm, height=3.5cm,
xtick=\empty,
ytick=\empty,
xlabel={\large $t$},
ylabel={\large $x(t)$},
xmin=0, xmax=11,
ymin=-3, ymax=5,
axis lines = middle,
very thick,
trig format = rad
]
\addplot [no markers, smooth, thick] {2*sin(2*pi*0.25*x)};
\end{axis}
\begin{axis}[
at={(0, -2.25cm)},
width=11cm, height=3.5cm,
xtick=\empty,
ytick=\empty,
xlabel={\large $t$},
ylabel={\textcolor{blue}{carrier wave}},
xmin=0, xmax=11,
ymin=-3, ymax=5,
axis lines = middle,
very thick,
trig format = rad
]
\addplot [no markers, smooth, blue, very thick] {2*sin(6*pi*x)};
\end{axis}
\begin{axis}[
at={(0, -4.5cm)},
width=11cm, height=3.5cm,
xtick=\empty,
ytick=\empty,
xlabel={\large $t$},
ylabel={\textcolor{olivegreen}{FM wave}},
xmin=0, xmax=11,
ymin=-3, ymax=5,
axis lines = middle,
very thick,
trig format = rad
]
\addplot expression [no markers, smooth, olivegreen, very thick] {2*sin(2*pi*3*x - 8*cos(2*pi*0.25*x))};
\end{axis}
\end{tikzpicture}
\end{document}