diff options
author | Nao Pross <np@0hm.ch> | 2021-12-04 17:05:29 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-12-04 17:05:29 +0100 |
commit | 9d0910c5140b28a84017b9bbb4def22d15425518 (patch) | |
tree | 26836d9005a93afabbb71edd6fddbc194e601a5f /notebooks/Test_file.py | |
parent | Update documentation (diff) | |
parent | Update net.py to decode UDP data stream (diff) | |
download | Fading-9d0910c5140b28a84017b9bbb4def22d15425518.tar.gz Fading-9d0910c5140b28a84017b9bbb4def22d15425518.zip |
Merge branch 'master' of github.com:NaoPross/Fading
Diffstat (limited to 'notebooks/Test_file.py')
-rw-r--r-- | notebooks/Test_file.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/notebooks/Test_file.py b/notebooks/Test_file.py index 1a987aa..c67d857 100644 --- a/notebooks/Test_file.py +++ b/notebooks/Test_file.py @@ -8,7 +8,7 @@ Created on Sat Nov 27 16:05:59 2021 import numpy as np import matplotlib.pyplot as plt -delay = 5.33 +delay = 6.37 ampl = 1 print(f"Tap with amplitude={ampl}, delay={delay}") @@ -29,10 +29,17 @@ 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) +t1 =np.arange(0.0,order, 0.01) +plt.grid(True) +plt.stem(samples, h,linefmt='C0-') +plt.plot(t1,np.sinc(t1-delay),'b--') 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 |