MATLAB Answers

lookup table for a function

4 views (last 30 days)
Hey guys I'm trying to use a lookup table for a function that is not monotonically increasing, but simulink is saying to me that the points of this function should be monotonically increasing. How do I do this:

  3 Comments

dpb
dpb on 27 Aug 2014
Use multiple tables where each complies with the rules -- but how are you going to know which is the correct response when there are two (or more) possible values (which, of course, is why the restriction in the first place)???
Danilo NASCIMENTO
Danilo NASCIMENTO on 27 Aug 2014
Ok. But if my function is monotonically decreasing it gives me the same warning. Actually, for me, only the decreasing part of the function is enough.
dpb
dpb on 27 Aug 2014
I don't know Simulink but that surprises me that decreasing monotonically is an issue. Are you sure it is monotonic or does it have a repeated value, maybe?
Mayhaps need to see the data to comment further...

Sign in to comment.

Accepted Answer

Danilo NASCIMENTO
Danilo NASCIMENTO on 29 Aug 2014
I've already solved it!

  1 Comment

dpb
dpb on 29 Aug 2014
And the answer was/is???

Sign in to comment.

More Answers (1)

Amira benAmeur
Amira benAmeur on 28 Nov 2017
Edited: Amira benAmeur on 29 Nov 2017
if you have decimal numbers in your data entries make sure that you didn't use ',' instead of '.' in the decimal number

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by