<< ld_lin_awup_controller basic_ldblocks ld_max >>

ORTD Scilab Interface Toolbox >> basic_ldblocks > ld_lookup

ld_lookup

Lookup table - block

Calling Sequence

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

Description

in * - input

out * - 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_lin_awup_controller basic_ldblocks ld_max >>