
Functions mt l b_semi l ogx and mt l b_semi l ogy are intended to produce plots As an example, take functions mt l b_l ogl og, mt l b_semi l ogx, mt l b_semi l ogy, and Particular those related to handling of graphs, may be easier to use than their SCILABĬounterparts. Try to encourage the use of the equivalent SCILAB functions. My take on this is that SCILAB developers

Help for these functions is not available in SCILAB. Here is a brief, partial list of commands with significantly different syntax.įseek file Graphics functions with mt l b_ prefix Some of them have a slightlyĭifferent syntax. Most built in functions are identical in Matlab® and SCILAB. A table of Matlab® and SCILAB equivalent functions SCICOS, visit SCILAB’s main web page ( ht t p: / / f r / sci l ab/ ).
#Scilab matlab compatibility software#
Graphically-based, system modeling software programs. SCICOS (SCILAB) and Simul ink (Matlab®) are not compatible. SCILAB functions written specifically to emulate Matlab® function. In a subsequent section we introduce some Matlab® graph functions are not compatible. PlottingĮxcept for the simple pl ot and mesh (Matlab®) and pl ot 3d (SCILAB) functions, SCILAB and For more details on SCILAB polynomials see They areĬonsidered as vectors of coefficients in Matlab®. Polynomials and polynomial matrices are defined by the function pol y in SCILAB. The same result in SCILAB as it does in Matlab®. Indexing with Boolean variables may not produce Statements ‘ t r ue’ and ‘ f al se ’, respectively. Each entry of a string matrix hasīoolean variables are %T, %F in SCILAB and 0, 1 in Matlab®. Strings are considered as 1 by 1 matrices of strings in SCILAB. This predefinitions can wreck havoc in programming if you try to use i or jĪs index variables. Matlab® predefines variables i and j as the unit

Protected, i., they can not be redefined. Predefined variables usually have the % prefix in SCILAB (%i, %inf. Matlab® comments begins with: % Variables To execute a script file you must use exec('filename') in SCILAB, as in Matlab®, you just Many examples of the use of get f and def f are provided throughout the book. Usually you have to execute the command getf(“ function_name” )įunctions can also be defined on-line (referred to as i nsi de f unct i ons ) by using the commandĭef f. One or several user-defined functions can be defined inĪ single file, and the name of the file is not necessarily related to the name of the function(s).Īlso, the function(s) are not automatically loaded into SCILAB, as they are in Matlab® after Theĭifferences are presented according to the subjects of functions, comment lines, strings,īoolean variables, polynomials, operations on empty matrices, plotting, and SCICOS (SCILAB’sįunctions in SCILAB are not considered as separate files, such as Matlab® m-files, but as It is intended as a guideline highlighting the differences between SCILAB and Matlab®. The information presented in this chapter is taken from the SCILAB web page: Many instances, the syntax, of SCILAB commands are very similar to those of Matlab®. If the reader has previously used Matlab®, he or she would notice that the operation and, in Distributed by i nfoClearinghouseĪll Rights Reserved A 'zip' file containing all of the programs in this document (and other SCILAB documents at InfoClearinghouse) can be downloaded at the following site: u/cee/faculty/gurro/Software_Calculators/Scil ab_Docs/ScilabBookFunctions The author's SCILAB web page can be accessed at: u/cee/faculty/gurro/Scilab.html Please report any errors in this document to: Comparing SCILAB and Matlab ®

Comparison of SCILAB Syntax and Functions to MATLAB ® By Gilberto E.
