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


smooth

smoothing by spline functions

Syntax

[pt]=smooth(ptd [,step])

Arguments

ptd

(2xn) real vector

step

real (discretization step of abscissae)

pt

(2xn) real vector

Description

this function computes interpolation by spline functions for a given set of points in the plane. The coordinates are (ptd(1,i),ptd(2,i)). The components ptd(1,:) must be in ascending order. The default value for the step is abs(max(ptd(1,:))-min(ptd(1,:)))/100

Examples

x=[1 10 20 30 40];
y=[1 30 -10 20 40];
plot2d(x',y',[3],"011"," ",[-10,-40,50,50]);
yi=smooth([x;y],0.1);
plot2d(yi(1,:)',yi(2,:)',[1],"000");

See also

  • splin — cubic spline interpolation
  • interp — cubic spline evaluation function
  • interpln — linear interpolation
Report an issue
<< mesh2d Interpolation splin >>

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 May 22 12:41:12 CEST 2023