bleeck@3: % This external file is included as part of the 'aim-mat' distribution package bleeck@3: % (c) 2011, University of Southampton bleeck@3: % Maintained by Stefan Bleeck (bleeck@gmail.com) bleeck@3: % download of current version is on the soundsoftware site: bleeck@3: % http://code.soundsoftware.ac.uk/projects/aimmat bleeck@3: % documentation and everything is on http://www.acousticscale.org tomwalters@0: function sig=createfrompoly(sig,p) tomwalters@0: % creates the signal from the points in the polynoms p (very useful with tomwalters@0: % polynomes that come from a fit tomwalters@0: tomwalters@0: sr=getsr(sig); tomwalters@0: xvals=getxvalues(sig); tomwalters@0: pvals=polyval(p,xvals); tomwalters@0: sig=setvalues(sig,pvals);