Mercurial > hg > ishara
view sequences/expdata.m @ 42:ae596261e75f
Various fixes and development to audio handling
author | samer |
---|---|
date | Tue, 02 Dec 2014 14:51:13 +0000 |
parents | b1280319413e |
children |
line wrap: on
line source
function y=expdata(A,B,N,M) % expdata - exponential data sequence % % expdata :: % real ~'initial value', % real ~'final value', % natural ~'number of steps (sequence length is steps+1), % M:natural ~'buffer size' % -> seq [[1,M]]. lA=log(A); k=(log(B)-lA)/N; y=map(@(i)exp(lA+k*i),integers(0,N));