Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.0.0 - Português


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 Lookuptables_pal 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 Mar 27 09:49:58 GMT 2023