tomwalters@0: % method of class @signal tomwalters@0: % function display(sig) tomwalters@0: % overwritten function that is called from the shell and for the tooltips tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % sig: original @signal 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 disp(sig) tomwalters@0: disp(sprintf('%s',sig.name)); tomwalters@0: if ~isempty(strfind(sig.unit_x,'ms')) tomwalters@0: disp(sprintf('sr=%5.0f/s length:%4.0f ms points:%5d',sig.samplerate,getlength(sig)*1000,getnrpoints(sig))); tomwalters@0: elseif ~isempty(strfind(sig.unit_x,'s')) tomwalters@0: disp(sprintf('sr=%5.0f/s length:%2.2f sec points:%5d',sig.samplerate,getlength(sig),getnrpoints(sig))); tomwalters@0: else tomwalters@0: disp(sprintf('unit(x)=%s',sig.unit_x)); tomwalters@0: disp(sprintf('signal: sr=%5.0f length:%4.2f points:%5d',sig.samplerate,getlength(sig),getnrpoints(sig))); tomwalters@0: end tomwalters@0: % sig.werte(1:10)' tomwalters@0: tomwalters@0: vals=sig.werte; tomwalters@0: nans=find(isnan(vals)); tomwalters@0: if length(nans)>0 tomwalters@0: disp('has NANs'); tomwalters@0: end