Error out of range

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일

0 개 추천

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일

0 개 추천

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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

질문:

2012년 10월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by