Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Xcos > palettes > Lookup tables palette > INTRPLBLK_f

INTRPLBLK_f

Linear interpolation

Block Screenshot

Description

The output of this block is a function of the input obtained by linear interpolation. This block has a single scalar input and a single scalar output port. The coord. and coord. give respectively the coordinate and the coordinate of the data points to be interpolated.

The parameter vectors should be sorted (strictly increasing).

Parameters

  • X coord.

    A vector (strictly increasing).

    Properties : Type 'vec' of size -1

  • Y coord.

    A vector (same size as X coord).

    Properties : Type 'vec' of size -1

Default properties

  • always active: no

  • direct-feedthrough: yes

  • zero-crossing: no

  • mode: no

  • regular inputs:

    - port 1 : size [1,1] / type 1

  • regular outputs:

    - port 1 : size [1,1] / type 1

  • number/sizes of activation inputs: 0

  • number/sizes of activation outputs: 0

  • continuous-time state: no

  • discrete-time state: no

  • object discrete-time state: no

  • name of computational function: intrpl

Example

The following example translate the sine input signal to a different range and cut part of it.

X={-1.0; -0.5; 0; 0.5; 1.0} Y={-6; -6; 0; 0; 6}

Interfacing function

  • SCI/modules/scicos_blocks/macros/NonLinear/INTRPLBLK_f.sci

See also

Report an issue
<< INTRP2BLK_f Lookup tables palette LOOKUP_f >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:37:59 CET 2022