tomwalters@0: % method of class @signal tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % tomwalters@0: % RETURN VALUE: tomwalters@0: % 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 plotwithenvelope(signal,border,stil) tomwalters@0: tomwalters@0: h=hilbertenvelope(signal); tomwalters@0: hh=GetData(h); tomwalters@0: plot(hh,'b-','linewidth',1.2);hold on tomwalters@0: tomwalters@0: if nargin==3 tomwalters@0: plot(signal,border,stil); tomwalters@0: end tomwalters@0: tomwalters@0: if nargin==2 tomwalters@0: plot(signal,border); tomwalters@0: end tomwalters@0: tomwalters@0: if nargin==1 tomwalters@0: plot(signal); tomwalters@0: end tomwalters@0: tomwalters@0: tomwalters@0: tomwalters@0: