linearinterp

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 5.0, Creation date: 2021-01-25, Last change: 2025-09-15

linear interpolation

Description

First use in exp_2021_01_25_convolution to explain the death table changed in long term by population demography changes and deat rate per age
CORONA induced function

See Also:

Example Illustration

 missing image of linearinterp(tab,x,col)

Syntax

y=linearinterp(tab,x,[col])

Input Parameter

tab: table or array
x: [n x 1] row list of sample or a single value
col: column to use for interpolation of x

Output Parameter

y: complete table row for interpolated x

Examples


linearinterp([0 10;0 20]',pi)
linearinterp([0:1:10;0:2:20]',pi)
linearinterp([0:1:100;sin((0:2:200)/10)]',pi)
linearinterp(array2table([0:1:100;sin((0:2:200)/10)]','VariableNames',{'k','sin(k)'}),pi)




Copyright 2021-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21