Convert sample number to time length --- Syntax time = vb_numsamp_to_time(numsamp,sample_freq) --- History 2008-10-30 Taku Yoshioka Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function time = vb_numsamp_to_time(numsamp,sample_freq) 0002 % Convert sample number to time length 0003 % 0004 % --- Syntax 0005 % time = vb_numsamp_to_time(numsamp,sample_freq) 0006 % 0007 % --- History 0008 % 2008-10-30 Taku Yoshioka 0009 % 0010 % Copyright (C) 2011, ATR All Rights Reserved. 0011 % License : New BSD License(see VBMEG_LICENSE.txt) 0012 0013 sampling_len = 1000/sample_freq; 0014 time = sampling_len .* numsamp;