Time values must be monotonically increasing error

조회 수: 18 (최근 30일)
dimitris
dimitris 2012년 5월 25일
In my simulink model i use a from workspace block to read some time values and alhough those values are increasing i get the error above. I am suspecting that this happens because the time values differ little from each other, in same cases even 10^(-7) or 10^(-8) . From the nature of the problem those time values cannot differ more, so i was wondering if there is a way to overcome this problem.

채택된 답변

Guy Rouleau
Guy Rouleau 2012년 5월 25일
Ensure you re 100% sure the value are increasing, for example by validating that each element of "diff(t)" is positive.
If this is the case, please contact technical support.
  댓글 수: 3
Guy Rouleau
Guy Rouleau 2012년 10월 29일
Each value is larger than the previous one...
Monotonic: t = [1 2 3 4 5] Non-monotonic: t = [1 5 3 4 2]
Emmanuel Luevano
Emmanuel Luevano 2012년 10월 30일
Ok, but how about if my input value is a distance matrix? I need to order this necessarily be taken by workspace, I need to store it as struct, or what could I do to solve it?
greetings!!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by