Error out of range

1 次查看(过去 30 天)
fariz
fariz 2012-10-11
Hi there, can i know when i run simulink process, there is ana erroe statement like this 'The expression: sin(u(1)*exp(2.3*(-u(2)))) in 'test_switch/Fcn' has a subscript that is out of range'
what is the meaning of this?

采纳的回答

Walter Roberson
Walter Roberson 2012-10-11
It means that "u" is expected to be a vector, but it does not have at least 2 elements.
  1 个评论
fariz
fariz 2012-10-11
oh i see. so its a vector related problem. thanks for the help.

请先登录,再进行评论。

更多回答(1 个)

Sachin Ganjare
Sachin Ganjare 2012-10-11
What is u(1) & u(2)? Please elaborate.
  1 个评论
fariz
fariz 2012-10-11
no just an input, the equation i got from a friend, and it seems that he got it wrong with it. so just need to do a new equation for the process.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by