Mercurial > hg > aimmat
view aim-mat/tools/@signal/createfrompoly.m @ 0:74dedb26614d
Initial checkin of AIM-MAT version 1.5 (6.4.2011).
author | tomwalters |
---|---|
date | Fri, 20 May 2011 12:32:31 +0100 |
parents | |
children | 20ada0af3d7d |
line wrap: on
line source
function sig=createfrompoly(sig,p) % creates the signal from the points in the polynoms p (very useful with % polynomes that come from a fit sr=getsr(sig); xvals=getxvalues(sig); pvals=polyval(p,xvals); sig=setvalues(sig,pvals);