view general/numerical/linterp.m @ 4:e44f49929e56

Adding reorganised general toolbox, now in several subdirectories.
author samer
date Sat, 12 Jan 2013 19:21:22 +0000
parents
children
line wrap: on
line source
function z=linterp(k,z0,z)
% linterp - linear interpolation between values
%
% linterp :: 
%    [Size] ~'fraction of distance to travel from from initial to final point',
%    [Size] ~'initial point',
%    [Size] ~'final point'
% -> [Size] ~'interpolated point'.

z = z0+k.*(z-z0);