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 wheter=is_current_var(varname,in) tomwalters@0: % usage: is_current_var(varname,) tomwalters@0: % returns a bool whether this variable is a defined variable or not tomwalters@0: tomwalters@0: n=size(in,1); tomwalters@0: for i=1:n tomwalters@0: if strcmp(in(i),varname) tomwalters@0: wheter=1; tomwalters@0: return tomwalters@0: end tomwalters@0: end tomwalters@0: wheter=0; tomwalters@0: