I have probleme in simulation could you help me

1 回表示 (過去 30 日間)
nado adjr
nado adjr 2022 年 1 月 23 日
回答済み: Jesús Zambrano 2022 年 1 月 23 日
An error occurred while running the simulation and the simulation was terminated
Caused by:
The expression: (1/(9*10^(-6)+0.1*u(4)))*(u(2)*u(4)*u(3)*0.1+0.98*u(3)*cos(u(1)))
in 'HANANEE/Fcn2'
has a subscript that is out of range

回答 (1 件)

Jesús Zambrano
Jesús Zambrano 2022 年 1 月 23 日
I see that the Fcn block highlighted in yellow (giving the error message) is part of a closed-loop, where in order to get a result it needs to have all those input values, but some of those inputs depend on the output of the block. Try to run the model step by step via Debug mode.
Another point: The Fcn block is not longer recommended. See more about it here:
If possible try to use a MATLAB function block instead.

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by