Mercurial > hg > ishara
annotate general/numerical/scalar/linterp.m @ 29:61921dceded1
More documentation on type system.
author | samer |
---|---|
date | Sat, 19 Jan 2013 17:56:21 +0000 |
parents | db7f4afd27c5 |
children |
rev | line source |
---|---|
samer@4 | 1 function z=linterp(k,z0,z) |
samer@4 | 2 % linterp - linear interpolation between values |
samer@4 | 3 % |
samer@4 | 4 % linterp :: |
samer@4 | 5 % [Size] ~'fraction of distance to travel from from initial to final point', |
samer@4 | 6 % [Size] ~'initial point', |
samer@4 | 7 % [Size] ~'final point' |
samer@4 | 8 % -> [Size] ~'interpolated point'. |
samer@4 | 9 |
samer@4 | 10 z = z0+k.*(z-z0); |