Using a MATLAB code on Scilab

Yes you can use MATLAB code on scilab. See these links for more information:

  1. http://help.scilab.org/docs/5.4.0/fr_FR/section_36184e52ee88ad558380be4e92d3de21.html

  2. http://help.scilab.org/docs/5.4.0/en_US/index.html


There is a tool to automatically convert Matlab source to Scilab source, it's called M2SCI. A script parses the Matlab source code and replaces Matlab-specific functions by Scilab ones. See the documentation of the mfile2sci function.


I would not bet on it. But if your code is simple enough chances are good.

Problems are:

  • There is encrypted p-code in Matlab that Scilab will not be able to open.

  • Matlab usually comes with a number of toolboxes that might not be available to you (i think especially Simulink)

  • last but not least (i don't know about scilab) there usually are minute differences in how functions are implemented.

Tags:

Matlab

Scilab