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 display(sig) tomwalters@0: tomwalters@0: if max(size(sig)) > 1 tomwalters@0: disp(sprintf('Array of user class Signal with %d signals',max(size(sig))));; tomwalters@0: else tomwalters@0: disp('User Signal'); tomwalters@0: disp(sprintf('Name: %s',sig.name)); tomwalters@0: l=getlength(sig); tomwalters@0: if l > 1 tomwalters@0: disp(sprintf('Length=%3.2f sec',getlength(sig))); tomwalters@0: else tomwalters@0: disp(sprintf('Length=%4.1f ms',getlength(sig)*1000)); tomwalters@0: end tomwalters@0: disp(sprintf('Points=%d',size(sig.werte,1))); tomwalters@0: disp(sprintf('Samplerate=%5.2f Hz',getsr(sig))); tomwalters@0: end