Error message in Simulink
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,Help please,when i try to run my Simulink model, i obtain this error:
when i use ode45 solver:State derivatives returned by S-function 'reactor_sfcn' in 'reactor_simulink_Left1/S-Function' during flag=1 call must be a real vector of length 2
when i use ode15s solver:Nonlinear iteration is not converging with step size reduced to hmin (1.5009766490884663E-14) at time 4.2248736734541605. Try reducing the minimum step size and/or relax the relative error tolerance
I thought this error related to my solver in simulink,then i changed it but not corrected!!! please help!!!
0 件のコメント
採用された回答
Kaustubha Govind
2012 年 7 月 3 日
First, I think you should tackle the error that you see with the ODE45 solver - it looks like there is a problem with your S-function. How are you returning the derivatives of the states in flag=1 case? It seems that you have setup for 2 continuous states, so you need to return a vector of length 2 from mdlDerivatives (flag=1).
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Event Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!