<< ld_vector_glue basic_ldblocks ld_vector_minmax >>

ORTD Scilab Interface Toolbox >> basic_ldblocks > ld_vector_lookup

ld_vector_lookup

Lookup table - block

Calling Sequence

[sim, out] = ld_vector_lookup(sim, events, u, lower_b, upper_b, table, interpolation, vecsize)

Description

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


Report an issue
<< ld_vector_glue basic_ldblocks ld_vector_minmax >>