Scilab Function

mfile2sci - Matlab M_file to scilab translation function

Calling Sequence

mfile2sci(M_file_path [,result_path [,Imode [,Recmode]]])

Parameters

Description

mfile2sci, is Matlab M-file to Scilab function traduction tools. It tries whenever possible to replace call to Matlab functions by the equivalent scilab primitives and functions.

To translate a Matlab M-file just enter the scilab instruction: mfile2sci(file)

where file is a character string giving the path name of the M-file mfile2sci will generate three files in the same directory

  • <function_name>.sci : the scilab equivalent of the m_file
  • <function_name>.cat : the scilab help file associated to the function
  • sci_<function_name>.sci : the scilab function required to translate the calls to this Matlab M_file in other Matlab M_files. This function may be improved "by hand". This function only useful for translation not for use of translated functions.
  • Some functions like eye, ones, size, sum,... behave differently according to the dimension of their arguments. When mfile2sci cannot infer dimensions it replaces these function call by a call to an emulation function named mtlb_<function_name>. For efficiency these functions may be replaced by the proper scilab equivalent instructions.

    Some other functions like plot, has no straightforward translation in scilab. They are also replaced by an emulation function named mtlb_<function_name>.

    When translation may be incorrect or may be improved mfile2sci adds a comment which began by "//!"

    REMARKS

    KNOWN BUGS

    Examples

    See Also

    Author