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 bleeck@3: tomwalters@0: function x=solve(p,y) tomwalters@0: % solves the polynom p for the value at y tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % input: a polynom tomwalters@0: % tomwalters@0: % RETURN VALUE: tomwalters@0: % return value(s) are the values, where the polynom is equal the tomwalters@0: % y-value tomwalters@0: % tomwalters@0: tomwalters@0: p(end)=p(end)-y; tomwalters@0: x=roots(p);