% method of class @frame
% 
%   INPUT VALUES:
%  
%   RETURN VALUE:
%
% 
% (c) 2003, University of Cambridge, Medical Research Council 
% Stefan Bleeck (stefan@bleeck.de)
% http://www.mrc-cbu.cam.ac.uk/cnbh/aimmanual
% $Date: 2003/01/17 16:57:46 $
% $Revision: 1.3 $

function fre=chan2fre(fr,chan)
% returns the frequency of that channel

nr_chan=getnrchannels(fr);

x=1:nr_chan;
Y=getcf(fr);
xi=chan;
method='linear';

fre=interp1(x,Y,xi,method);