How to use a 2-D Lookup Table Block for N independent dimensions?
3 views (last 30 days)
Show older comments
In the end, this is all supposed to function within Simulink/Simscape, but I could do it in a m-function or script if it works easier that way. I have a nx14 array of data, where each column's data is the (previously) recorded data for a different variable/dimension of an object, and the rows indicate the time (every row is data that has been recorded one second after the previous row)
I'm trying to get the lookup table to take the a value for each of the first 13 columns as inputs, find the row with the closest overall values, and output the value of the last column in that row. Is this even possible with the 2-D LUT blocks? Is there any way to do this in Matlab at all? I would really rather not have to record n^13 points of data just so I can use the n-D lookup table.
I'm not new to Matlab but I don't have much experience working with Simulink or this kind of data, any help would be greatly appreciated.
0 Comments
Answers (0)
See Also
Categories
Find more on Lookup Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!