Home > vbmeg > functions > common > utility > vb_numsamp_to_time.m

vb_numsamp_to_time

PURPOSE ^

Convert sample number to time length

SYNOPSIS ^

function time = vb_numsamp_to_time(numsamp,sample_freq)

DESCRIPTION ^

 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)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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;

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005