Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab help >> Matlab to Scilab Conversion Tips > Matlab-Scilab equivalents > F > fopen (Matlab function)

fopen (Matlab function)

Open a file or obtain information about open files

Matlab/Scilab equivalent

Matlab Scilab

Particular cases

Access permission:

Matlab offers two permissions options not supported by Scilab: W and A (for tape drives)

Input values:

In Matlab, fopen('all') lists all opened files, in Scilab, this type of call for fopen does not exist. You can also use fopen in Matlab to get informations on a file identifier (fopen(fid)), this case is not implemented in Scilab.

Machine format:

Note that Scilab does not support machine format values as input or output.

Matlab fopen can return an error message but not Scilab mopen, moreover, returned file identifier is -1 in case of error in Matlab but does not exist in this case in Scilab, so an emulation function has been written mtlb_fopen.

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu May 12 11:44:29 CEST 2011