Untitled
unknown
plain_text
9 months ago
551 B
15
Indexable
# imports
import matplotlib.pyplot as plt
import numpy as np
# kHz
freq = np.array([30, 32, 34, 36, 38, 39 ,39.2,39.4,39.6,39.8, 40, 40.2,40.4,40.6,40.8, 41, 42, 44, 46, 48, 50])
amp = np.array([0,0.5,0.925,8.2,31.175,70,94,103.75,143.135,174.375,278.175,226.18,201.25,153,131.875,119.375,56.25,20.625,9.625,14.875,17])
ampc = amp*(0.001)/8 # correction for amplitude ratio
plt.plot(freq, ampc)
plt.xlabel('Frequency (kHz')
plt.ylabel('Amplitude Ratio')
plt.title('Amplitude Ratio against Frequency', fontsize = 15)
plt.show()
Editor is loading...
Leave a Comment