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

2 次查看(过去 30 天)

回答(1 个)

Sam Chak
Sam Chak 2023-11-26
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 个评论
DOMIDE
DOMIDE 2023-11-27
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?

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by