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

Please note that the recommended version of Scilab is 6.0.1. This page might be outdated.
See the recommended documentation of this function

Справка Scilab >> Matlab to Scilab Conversion Tips > matfile2sci


converts a Matlab 5 MAT-file into a Scilab binary file

Calling Sequence

matfile2sci(mat_file_path,sci_file_path[, overwrite])



character string containing the path of the Matlab input file


character string containing the path of the Scilab output file


a boolean: wipes the sci_file_path file if set to true. False by default.


Converts a Matlab 5 MAT-file into a SOD file compatible with the function load (See save for more information). The Matlab data types are converted into the Scilab equivalents.

The function exits without creating an output file if no variable was found in the input file.

See Also

  • loadmatfile — loads a Matlab V6 MAT-file (binary or ASCII) into Scilab
  • load — Load a saved variable or a serie of variables
  • save — Save a variable or a serie of variables in a binary file
  • mfile2sci — Matlab M-file to Scilab conversion function


This function has been developed according to the document "MAT-File Format": Mat-File Format


5.4.0 Scilab output file in a SOD (Scilab Open Data) file.
5.5.0 Output file can be overwritten or appended.
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 14:01:18 CEST 2014