please help me to this error "Derivative of state '1' in block 'ex/Integrator1' at time 1.3765443114784894 is not finite. The simulation will be stopped. There may be a sing

1 view (last 30 days)

Answers (1)

Sam Chak
Sam Chak on 26 Nov 2023
Hi, your system is unstable and it grows without bound, thus making the simulation stops. Check the formulas of each Gain block. This is a linear system, so you can check its stability before simulating the system.
  1 Comment
DOMIDE
DOMIDE on 27 Nov 2023
this is my code in matlab: R1=6.8e+3;
R2=6.8e+3;
R3=4.7e+3;
C1=68e-9;
C2=10e-9;
u=5;
and these are my derivatives depending on x1 and x2
x1' = (-1/C1)*(1/R1-1/R3) *x1 + (-1/C1)*(1/R2-1/R3) ;1/(C2*R3) * x2 + 1/(C1 * R1) *u
x2'=1/(R3*C2)* x1 -1/(R3*C2)* x2
y=x1-x2
how will I have to make the connections?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!