next up previous contents
Next: WFDB_wfdbflush Up: Miscellaneous Functions Previous: WFDB_getwfdb   Contents


WFDB_wfdbfile

Usage: PATH = WFDB_wfdbfile(NAME);  
  PATH = WFDB_wfdbfile(TYPE, RECORD);  
Input: NAME: (string) file name, e.g. '100s.hea'  
  TYPE: (string) type of file, e.g. 'hea' or 'atr'  
  RECORD: (string) record name, e.g. '100s'  
Output: PATH: (string) pathname of the file or URL  

This function locates an existing WFDB file by searching the database path. The file is specified by TYPE and RECORD, or by its NAME. On return, PATH includes the appropriate component of the database path; since the database path may include empty or non-absolute components, the string is not necessarily an absolute pathname. PATH may also be a URL rather than a pathname. If the file cannot be found, WFDB_wfdbfile returns an empty string, ''.



George B. Moody 2005-06-02