MATLAB Function Reference    
frewind

Move the file position indicator to the beginning of an open file

Syntax

Description

frewind(fid) sets the file position indicator to the beginning of the file specified by fid, an integer file identifier obtained from fopen.

Remarks

Rewinding a fid associated with a tape device may not work even though frewind does not generate an error message.

See Also

fclose, ferror, fopen, fprintf, fread, fscanf, fseek, ftell, fwrite


  freqspace fscanf