Lookup table - block
[sim, out] = ld_vector_lookup(sim, events, u, lower_b, upper_b, table, interpolation, vecsize)
in *+(vecsize) - input
out *+(vecsize) - output
lower_b - smallest value of the input signal to map to the table
upper_b - biggest value of the input signal to map to the table
table - the table (Scilab vector)
Mapping is done in a linear way:
out = table( (in - lowerin) / (upperin - lowerin) )
interpolation = 0 : no interpolation
interpolation = 1 : linear interpolation