I am trying to discretize a set of ODEs, for instance give a
xdot =f(x,t) obtain a difference equation x(k+1)=f(x,k)
and then design a state-space controller. Usually, I used Euler
x(k+1)=x(k)+h*f(x,t) with good results
however I cannot fit the original system response, See attached File