MATLAB Answers


PID non linear ode model

Asked by Abdelmoumen Bacetti on 7 Jun 2017
Latest activity Edited by Abdelmoumen Bacetti on 7 Jun 2017
Hi guys
I've modeled a nonlinear system using ode function, but I don't see how can I use a PID controller alongside with this ode model in feedback function since this latter function requires inputs of type sys. Is there any way to make this work without linearization of the system.
Here is how the system looks like:
xdot(1) = c11*x(1) + c12*x(2) + c13*x(3) + u
xdot(2) = c21*x(1) + c22*x(2) + c23*x(3)
xdot(3) = c31*x(1) + c32*x(2) + c33*x(3) + NLterm
NLterm = c*x(3)/(c^2 + x(3)^2)
In SS form:
A= [c11 c12 c13;...
c21 c22 c23;...
c31 c32 c33 + c/(c^2 + x(3)^2)];
B = [1 0 0]';
C = [0 0 1];
But, this can't be done with "ss" function in Matlab.
Any ideas !!


Sign in to comment.

0 Answers