aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--doc/thesis/chapters/theory.tex3
-rw-r--r--notebooks/Test_file.py38
2 files changed, 40 insertions, 1 deletions
diff --git a/doc/thesis/chapters/theory.tex b/doc/thesis/chapters/theory.tex
index 520277d..64d412b 100644
--- a/doc/thesis/chapters/theory.tex
+++ b/doc/thesis/chapters/theory.tex
@@ -214,7 +214,8 @@ Equation \eqref{eqn:multipath-frequency-response} shows that the frequency respo
\begin{figure}
\centering
\resizebox{\linewidth}{!}{
- \input{figures/tikz/multipath-frequency-response-plots}
+ % \input{figures/tikz/multipath-frequency-response-plots}
+ \skelfig[width = .8 \linewidth, height = 3cm]{}
}
\caption{
Frequency response of a multipath fading channel.
diff --git a/notebooks/Test_file.py b/notebooks/Test_file.py
new file mode 100644
index 0000000..1a987aa
--- /dev/null
+++ b/notebooks/Test_file.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+"""
+Created on Sat Nov 27 16:05:59 2021
+
+@author: sarah
+"""
+
+import numpy as np
+import matplotlib.pyplot as plt
+
+delay = 5.33
+ampl = 1
+print(f"Tap with amplitude={ampl}, delay={delay}")
+
+order = 2 * np.floor(delay) + 1 #N
+print(f"Creating filter of order N={order}")
+
+samples = np.arange(0, order +1)
+
+h = ampl*(np.sinc(samples-delay)) #sinc
+
+# plt.stem(samples, h)
+# plt.show()
+
+t = np.arange(50)
+
+signal = np.sin(2 * np.pi * t * 0.05)
+
+signal_shifted = np.convolve(h, signal, mode='full')
+
+#Time PLot
+plt.xlabel('Delay')
+plt.ylabel('Amplitude')
+#plt.title('')
+plt.plot(t, signal)
+plt.grid(True)
+plt.show()
+plt.plot(signal_shifted) \ No newline at end of file