0

I have some measured data (1D-Data - hope it is correct to name it in that way), for example a table with three columns. (see below)

Example measurement data

For example in the first row at 1000rpm speed and 57% throttle position the engine generates 30Nm of torque. Now I want to use this data for two use cases:


  1. in a 2D-lookup-table in Simulink.

Speed and throttle position is provided als input and the lookup-table should "interpolate" torque as output.

Lookup table setup in Simulink

I created three vectors with the da from each column in the table and entered them in the lookup-table parameters but there appears some error:

"Error occurred while retrieving data, check the selected block's parameter setting. Error reported by block ''spielwiese/2-D Lookup Table'': The number of dimensions in the table data is 1 while the number of dimensions specified in the block is 2. They must match."

Is it possible to interpolate or extend the data to use it in this lookup table?


  1. in a plot to create an engine map.

Like this one: engine map - source: https://www.researchgate.net/figure/Engine-map-engine-torque-vs-throttle-and-engine-RPM_fig7_261390259

I tried to create a map with contourf but I got no result. Maybe some of you know how to create such a plot with this data.

Hope you can project my thoughts.

of_nk
  • 1
  • Welcome to Stackoverflow. Please, ask only one question per post. – nonDucor Mar 01 '22 at 16:36
  • To understand what you are getting wrong, think about how you would be the torque for an input of 1000 rpm and a throttle position of 100%? – nonDucor Mar 01 '22 at 16:36