Home > functions > gui > preAnalysis > trial_extractor > private > vb_continuous_file_get_sample_freq.m

vb_continuous_file_get_sample_freq

PURPOSE ^

return sampling frequency of the file

SYNOPSIS ^

function [freq] = continous_file_get_sample_freq(obj)

DESCRIPTION ^

 return sampling frequency of the file

 [USAGE]
    [freq] = continous_file_get_sample_freq(obj);
 [IN]
    obj : continous_file object.
 [OUT]
    freq : sampling frequency.

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [freq] = continous_file_get_sample_freq(obj)
0002 % return sampling frequency of the file
0003 %
0004 % [USAGE]
0005 %    [freq] = continous_file_get_sample_freq(obj);
0006 % [IN]
0007 %    obj : continous_file object.
0008 % [OUT]
0009 %    freq : sampling frequency.
0010 %
0011 % Copyright (C) 2011, ATR All Rights Reserved.
0012 % License : New BSD License(see VBMEG_LICENSE.txt)
0013 
0014 %
0015 % --- Previous check
0016 %
0017 if ~exist('obj', 'var')
0018     error('obj is a required parameter.');
0019 end
0020 
0021 %
0022 % --- Main Procedure
0023 %
0024 freq = vb_meginfo_get_sampling_frequency(obj.MEGinfo);

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005