Info

此问题已关闭。 请重新打开它进行编辑或回答。

Is there a possibility for an N-dimensional lookuptable in Simscape?

2 次查看(过去 30 天)
Hello everybody,
I am constructing an emperical model within simhydraulics for a project. For the emperical model I currently use a 2dimensional lookup table (PS lookup) as follows:
This works well for my model, however I now want to add an additional variable to the model to implement another influence. Unfortunately there is as far i can see no n-D lookuptable available in the Simscape library.
I tried using an 'ordinary' Simulink n-dimensional look up table and using convertion blocks (PS-Simulink block --> n-D lookup --> Simulink-PS block) to overcome my problem, however now my model becomes unstable, or at least the automatic stepsize becomes really (unworkable) small.
Does anybody have a solution for my problem?
thank you very much in advance,
Wouter

回答(1 个)

noman shah
noman shah 2015-12-8
i am not understanding why you need an n-dimensional lookup table but the thing you can do is to proveide trend line for your data, eg
x=[1 3 4 5 6 8 9] y=[9 9 8 5 3 4 4]
this will convert your output value to according to input value in the lookup table but if the input value less than 1 or greater than 9 will always gives the result 9 and 4 respectivley.
also try it.
x=[0 1 3 4 5 6 8 9 10] y=[6 9 8 5 3 4 5 6 7]
with allowing interpolation and extrapolation and using saturation block with your desire max and min value,may be you get your required result you want to do

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by