MATLAB Answers


Error when try to process many file

Asked by joo tan on 13 Dec 2011
i try process many file but at the middle, error like below:
Error using ==> fprintf Invalid file identifier. Use fopen to generate a valid file identifier.
Error in ==> Final at 19
??? C:\Program Files\MATLAB\R2010a\toolbox\matlab\codetools\opentoline.m: Too many files open; check that FILES = 20 in your CONFIG.SYS file.
what meants and how to solve?? need help


Sign in to comment.

1 Answer

Answer by Walter Roberson
on 13 Dec 2011

Usually it means that you have forgotten to fclose() your files.
There have been reports at various times of running in to this problem when using some of the utility routines along the lines of xlswrite(), routines that should be closing files but sometimes do not.
I do not recall hearing of this problem with regards to codetools, but I have not read much about that product.

  1 Comment

on 13 Dec 2011
To get a list of open file: fopen('all')

Sign in to comment.