2D Lookup Table: How to do it??

Hello, I'm new to to Scilab community and I'm trying to create a model of a car following a specific driving path.

For that I need an 2D lookup table so that with the throttle and engine speed I can find the Engine torque, but I saw that the "Lookup2D" pallete from Xcos was removed!!
Any idea how I can add it back or of a substitute function?
Thanks for the help

Scilab 07-02-17, 7:51 p.m. Prof.X
The block "Lookup2D" has indeed been removed. There are no available substitute functions currently. However, there exists a user-written function with similar functionality.
Tinker with it a bit to adjust it to your requirements.
09-02-17, 5:13 p.m. Sid11235
I found this code before, but how can I create a xcos block from it?

09-02-17, 7:01 p.m. Prof.X
Use the scilab function block in the user-defined blocks palette. It will require some work but isn't very difficult.

10-02-17, 2:56 p.m. Sid11235

Login to add comment

I solved the problem by using the Interp 2 block.
By transforming the data into a Matrix and writing in the block I was able to have a 2d lookup table. It is not as easy as simply selecting a table file but it worked.
10-02-17, 5:30 p.m. Prof.X

Log-in to answer to this question.