view general/numerical/scalar/linterp_d.m @ 16:db7f4afd27c5

Rearranging numerical toolbox.
author samer
date Thu, 17 Jan 2013 13:20:44 +0000
parents general/numerical/linterp_d.m@e44f49929e56
children
line wrap: on
line source
function z=linterp_d(k,z0,d)
% linterp_d - linear interpolation between two points
%
% linterp_d :: 
%    real   ~'fraction of distance to travel from from initial to final point',
%    [Size] ~'initial point',
%    [Size] ~'vector from initial to final point'
% -> [Size] ~'interpolated point'.
%
% Definition is linterp_d(k,z0,d) = linterp(k,z0,z0+d)
%
% See also: LINTERP, VLINTERP

z = z0+k.*d;