Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - Русский

Change language to:
English - Français - 日本語 - Português -

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

Справка Scilab >> Interpolation > interp3d

interp3d

3d spline evaluation function

Calling Sequence

[fp[,dfpdx,dfpdy,dfpdz]]=interp3d(xp,yp,zp,tl,out_mode)

Arguments

xp, yp, zp

real vectors or matrices of same size

tl

tlist of type "splin3d", defining a 3d tensor spline (called s in the following)

out_mode

(optional) string defining the evaluation of s outside the grid ([xmin,xmax]x[ymin,ymax]x[zmin,zmax])

fp

vector or matrix of same format than xp, yp and zp, elementwise evaluation of s on these points.

dfpdx, dfpdy, dfpdz

vectors (or matrices) of same format than xp, yp and zp, elementwise evaluation of the first derivatives of s on these points.

Description

Given a tlist tl defining a 3d spline function (see splin3d) this function evaluates s (and ds/dx, ds/dy, ds/dz if needed) at (xp(i),yp(i),zp(i)) :

The out_mode parameter defines the evaluation rule for extrapolation, i.e. for (xp(i),yp(i),zp(i)) not in [xmin,xmax]x[ymin,ymax]x[zmin,zmax] :

"by_zero"

an extrapolation by zero is done

"by_nan"

extrapolation by Nan

"C0"

the extrapolation is defined as follows :

s(x,y) = s(proj(x,y)) where proj(x,y) is nearest point 
                      of [x(1),x(nx)]x[y(1),y(ny)] from (x,y)
"periodic"

s is extended by periodicity.

Examples

// see the examples of the splin3d help page

See Also

  • splin3d — spline gridded 3d interpolation
  • bsplin3val — 3d spline arbitrary derivative evaluation function

History

ВерсияОписание
5.4.0 previously, imaginary part of input arguments were implicitly ignored.
Report an issue
<< interp2d Interpolation interpln >>

Copyright (c) 2022-2023 (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:
Thu Oct 02 14:01:05 CEST 2014