tomwalters@0: % method of class @signal tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % tomwalters@0: % RETURN VALUE: tomwalters@0: % tomwalters@0: % 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: tomwalters@0: function val=getbinvalue(sig,bin) tomwalters@0: % usage: val=gettimevalue(sig,bin) tomwalters@0: % returns the value at this bin tomwalters@0: % if the time is not exact on one bin, than interpolate tomwalters@0: % correctly tomwalters@0: tomwalters@0: nr_points=getnrpoints(sig); tomwalters@0: x=1:nr_points; tomwalters@0: Y=sig.werte; tomwalters@0: xi=bin; tomwalters@0: method='linear'; tomwalters@0: tomwalters@0: tomwalters@0: % val=sig.werte(bin); tomwalters@0: tomwalters@0: val=interp1(x,Y,xi,method);