필터 지우기
필터 지우기

How to deal with algebric loops and how to get rid of Nan????

조회 수: 6 (최근 30일)
Amar
Amar 2013년 4월 9일
I built up a full vehicle simulink model. After running the simulation i am getting the error as Algebraic state in algebraic loop containing '...../Integrator' computed at time 0 .4 is Inf or NaN. There may be a singularity in the solution. If the model is correct, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances). I have check the output at each block its showing NaN at third step. I gave all the inputs in numeric form instead of that i am getting this message. Please....can any body help me to get out of this error...please

답변 (1개)

Yao Li
Yao Li 2013년 4월 9일
try to add the block 'memory' and give an initial value to each closed loop
  댓글 수: 2
Amar
Amar 2013년 4월 9일
i have to take initial value as 0 will it work in that case also
Yao Li
Yao Li 2013년 4월 9일
편집: Yao Li 2013년 4월 9일
it doesn't matter, but there must be an initial value and make sure zero will never be the denominator

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by