Query about errors in file input or output
When Matlab ferror is called with just one input and one output, then Scilab equivalent i merror.
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.