tomwalters@0: % method of class @signal tomwalters@0: % function sigresult=copy(sig1,sig2,[start_time]) tomwalters@0: % copies the first signal in the second, also when sig2 is a struct. tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % sig1: first @signal tomwalters@0: % sig2: second @signal or struct tomwalters@0: % start_time: start time for copying. [default: 0] tomwalters@0: % RETURN VALUE: tomwalters@0: % sigresult: @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 tomwalters@0: tomwalters@0: function sig=copy(a,b,start_time) tomwalters@0: tomwalters@0: if nargin<3 tomwalters@0: start_time=0; tomwalters@0: end tomwalters@0: tomwalters@0: if isobject(werte) tomwalters@0: not implemented yet tomwalters@0: end tomwalters@0: tomwalters@0: if isnumeric(b) tomwalters@0: sig=signal(a); tomwalters@0: sig=mute(sig); % setze alle Werte auf Null tomwalters@0: tomwalters@0: nr=size(b,1); tomwalters@0: dauer=bin2time(sig,nr); tomwalters@0: tomwalters@0: sig=add(a,b,start_time,dauer) tomwalters@0: end tomwalters@0: tomwalters@0: tomwalters@0: tomwalters@0: