tomwalters@0: % method of class @parameter 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 tomwalters@0: tomwalters@0: tomwalters@0: function pos=getposition(param) tomwalters@0: % moves the figure identified by handle h to the specified screen location, tomwalters@0: % preserving the figure's size. The position argument can be any of the following strings: tomwalters@0: % north - top center edge of screen tomwalters@0: % south - bottom center edge of screen tomwalters@0: % east - right center edge of screen tomwalters@0: % west - left center edge of screen tomwalters@0: % northeast - top right corner of screen tomwalters@0: % northwest - top left corner of screen tomwalters@0: % southeast - bottom right corner of screen tomwalters@0: % southwest - bottom left corner tomwalters@0: % center - center of screen tomwalters@0: % onscreen - nearest location with respect to current location that is on screen The position argument can also be a two-element vector [h,v], where depending on sign, h specifies the tomwalters@0: tomwalters@0: pos=param.position;