tomwalters@0: % method of class @frame tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % tomwalters@0: % RETURN VALUE: tomwalters@0: % tomwalters@0: % tomwalters@0: % (c) 2003, University of Cambridge, Medical Research Council tomwalters@0: % Stefan Bleeck (stefan@bleeck.de) tomwalters@0: % http://www.mrc-cbu.cam.ac.uk/cnbh/aimmanual tomwalters@0: % $Date: 2003/01/17 16:57:46 $ tomwalters@0: % $Revision: 1.3 $ tomwalters@0: tomwalters@0: function binx=displaytime2bin(fr,time) tomwalters@0: % usage: binx=displaytime2bin(fr,time) tomwalters@0: % returns the nr of the bin in the display at this time tomwalters@0: % this is shifted due to logarithm etc tomwalters@0: tomwalters@0: srate=getsr(fr); tomwalters@0: tomwalters@0: minimum_time_interval=-fr.display_min_time/1000; % thats the first point we want to see on the screen tomwalters@0: maximum_time_interval=fr.display_max_time/1000; % thats the first point we want to see on the screen tomwalters@0: binx=(maximum_time_interval+time)*srate+1; tomwalters@0: