Error out of range

1 visualizzazione (ultimi 30 giorni)
fariz
fariz il 11 Ott 2012
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?

Risposta accettata

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

Accedi per commentare.

Più risposte (1)

Sachin Ganjare
Sachin Ganjare il 11 Ott 2012
What is u(1) & u(2)? Please elaborate.
  1 Commento
fariz
fariz il 11 Ott 2012
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.

Accedi per commentare.

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by