tomwalters@0: % tool tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % tomwalters@0: % RETURN VALUE: tomwalters@0: % tomwalters@0: % 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 [res,scaleinfo]=distributelogarithmic(from,to,steps) tomwalters@0: % usage: [res,scaleinfo]=distributelogarithmic(from,to,steps) tomwalters@0: % gives back values that start from "from" and go to "to" in tomwalters@0: % "steps" steps, so that the stepwidth is logarithmic tomwalters@0: tomwalters@0: % returnvalues to keep track (needed in some cases) tomwalters@0: scaleinfo.from=from; tomwalters@0: scaleinfo.to=to; tomwalters@0: scaleinfo.steps=steps; tomwalters@0: tomwalters@0: tomwalters@0: res=0:steps-1; tomwalters@0: res=lin2log(res,scaleinfo);