I have a bode plot, and need to pick off the plot the magnitude at a given frequency.
I did implement ginput(), but this does not seem to be the ideal way to do this. I want to do it similar to how it would be done in MATLAB.
My code:
import control as cnt
K=10
num=np.array([4])
den=np.array([1,2,0])
OLTF=cnt.tf(num,den)
cnt.bode_plot(float(K)*OLTF,dB=True,omega_limits=[10e-1,10e1])
#How do I find the magnitude of the transfer function in dB given a frequency of -15.27?
;
I know I could try to look through the data but it is not making sense to me…the array values do not seem to correspond to what is shown on the plot.