Hello,
I’m trying to execute this example in order to create bode plot.
the command line is :
mag,phase,omega = control.bode(Gp)
I always have this error :
do you have any idea to solve it ?
thanks
Hello,
I’m trying to execute this example in order to create bode plot.
the command line is :
mag,phase,omega = control.bode(Gp)
I always have this error :
do you have any idea to solve it ?
thanks
This isn’t pertinent to the Jupyter forum because if you ran this code directly in a Python console or in a Python script aside from Jupyter, then you’d get the same issue.
Maybe try posting it here?
Another thing to keep in mind is that this notebook here hasn’t been updated in over five years.
I don’t see anything obvious specific to your issue here or here in past issues at this time; however, that note about np.matrix
at the latter link being deprecated gives me pause. As libraries change it is often necessary to update code to handle the newer approaches. It may have been so broad that my search with numpy.ndarray
didn’t bring up the overarching issue though.
There’s some code from two years ago using it here. If you wanted to troubleshoot it more yourself you may want to compare how the arguments, especially control.TransferFunction(num, den)
compare to what your code us using.