Home > biosig > t200 > sread.m

sread

PURPOSE ^

SREAD loads selected segments of signal file

SYNOPSIS ^

function [S,HDR,time] = sread(HDR,NoS,StartPos)

DESCRIPTION ^

 SREAD loads selected segments of signal file

 [S,HDR] = sread(HDR [,NoS [,StartPos]] )
 NoS       Number of seconds, default = 1 (second)
 StartPos  Starting position, if not provided the following data is read continously from the file. 
                    no reposition of file pointer is performed

 HDR=sopen(Filename,'r',CHAN);
 [S,HDR] = sread(HDR, NoS, StartPos)
          reads NoS seconds beginning at StartPos
 
 [S,HDR] = sread(HDR, inf) 
          reads til the end starting at the current position 
 
 [S,HDR] = sread(HDR, N*HDR.Dur) 
    reads N trials of an BKR file 
 

 See also: fread, SREAD, SWRITE, SCLOSE, SSEEK, SREWIND, STELL, SEOF

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003