# ferror (Matlab function)

Query about errors in file input or output

## Matlab/Scilab equivalent

Matlab | Scilab

    ferror

    mclearerr - merror

## Particular cases

ferror(fid)

  When Matlab ferror is called with just one input and one output, then Scilab equivalent is merror.

ferror(fid,'clear')

  When Matlab ferror is called with two inputs and just one output, then Scilab equivalent is mclearerr.

For all other cases, there no equivalent in Scilab.