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?

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 11 Okt. 2012

0 Stimmen

It means that "u" is expected to be a vector, but it does not have at least 2 elements.

1 Kommentar

fariz
fariz am 11 Okt. 2012
oh i see. so its a vector related problem. thanks for the help.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Sachin Ganjare
Sachin Ganjare am 11 Okt. 2012

0 Stimmen

What is u(1) & u(2)? Please elaborate.

1 Kommentar

fariz
fariz am 11 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by