Scilab keywords * ans — answer * backslash — left matrix division. * brackets — ([,]) left and right brackets * case — keyword used in select * colon — (:) colon operator * comma — (,) column, instruction, argument separator * comments — comments * comparison — comparison, relational operators * do — language keyword for loops * dot — (.) symbol * else — keyword in if-then-else * elseif — keyword in if-then-else * empty — ([]) empty matrix * end — end keyword * equal — (=) assignment , comparison, equal sign * for — language keyword for loops * global — Define global variable * hat — (^) exponentiation * if — conditional execution * left — ([) left bracket * less — (<) greater than comparison * minus — (-) substraction operator, sign changes * not — (~) logical not * parents — ( ) left and right parenthesis * percent — (%) special character * plus — (+) addition operator * power — power operation (^,.^) * quote — (') transpose operator, string delimiter * return — return or resume execution and copy some local variables * select — select keyword * semicolon — ending expression and row separator * slash — (/) right division and feed back * star — (*) multiplication operator * then — keyword in if-then-else * tilda — (~) logical not * try — beginning of catch block in try-catch control instruction * while — while keyword
Complex * complex — Create a complex number. * imag — imaginary part * imult — multiplication by i the imaginary unitary * isreal — check if a variable as real or complex entries * real — real part
Discrete mathematics * binomial — binomial distribution probabilities * factor — factor function * factorial — The factorial function * perms — all permutations of vector components * primes — primes function * rat — Floating point rational approximation
Elementary matrices * diag — diagonal including or extracting * eye — identity matrix * ind2sub — linear index to matrix subscript values * linspace — linearly spaced vector * logspace — logarithmically spaced vector * meshgrid — create matrices or 3-D arrays * ndgrid — arrays for multidimensional function evaluation on grid * ones — matrix made of ones * rand — random number generator * sub2ind — matrix subscript values to linear index * zeros — matrix made of zeros
Floating point * ceil — round up * double — conversion from integer to double precision representation * fix — round towards zero * floor — round down * frexp — dissect floating-point numbers into base 2 exponent and mantissa * int — round towards zero * isinf — check for infinite entries * isnan — check for "Not a Number" entries * nearfloat — get previous or next floating-point number * nextpow2 — next higher power of 2. * number_properties — determine floating-point parameters * round — round to nearest integer
Integer representation * base2dec — convert from base b to decimal * bin2dec — convert from binary to decimal * dec2bin — convert from decimal to binary * dec2hex — convert from decimal to hexadecimal * dec2oct — convert from decimal to octal * hex2dec — convert from hexadecimal to decimal * oct2dec — convert from octal to decimal
Matrix manipulation * flipdim — flip x components along a given dimension * permute — permute the dimensions of an array * repmat — Replicate and tile an array * resize_matrix — create a new matrix with a different size
Matrix operations * cumprod — cumulative product of array elements * cumsum — cumulative sum of array elements * kron — Kronecker product (.*.) * prod — product of array elements * sum — sum of array elements * tril — lower triangular part of matrix * triu — upper triangle
Search and sort * dsearch — search in ordered sets * gsort — sorting by quick sort agorithm * lex_sort — lexicographic matrix rows sorting * vectorfind — finds in a matrix rows or columns matching a vector
Set operations * intersect — returns the vector of common values of two vectors * setdiff — returns components of a vector which do not belong to another one * union — extract union components of a vector * unique — extract unique components of a vector or matrices
Signal processing * bloc2exp — block-diagram to symbolic expression * bloc2ss — block-diagram to state-space conversion * pen2ea — pencil to E,A conversion * ssrand — random system generator * sysconv — system conversion * sysdiag — block diagonal system connection * syslin — linear system definition * trfmod — poles and zeros display
Symbolic * solve — symbolic linear system solver * trianfml — symbolic triangularization * trisolve — symbolic linear system solver
Trigonometry * acos — element wise cosine inverse (radians) * acosd — element wise cosine inverse, result in degree. * acosh — hyperbolic cosine inverse * acoshm — matrix hyperbolic inverse cosine * acosm — matrix wise cosine inverse * acot — computes the element-wise inverse cotangeant of the argument. * acotd — computes the element-wise inverse cotangeant of the argument result in degree. * acoth — element wise hyperbolic cotangeant inverse. * acsc — computes the element-wise inverse cosecant of the argument. * acscd — computes the element-wise inverse cosecant of the argument, results in degree. * acsch — computes the element-wise inverse hyperbolic cosecant of the argument. * asec — computes the element-wise inverse secant of the argument. * asecd — computes the element-wise inverse secant of the argument, results in degree. * asech — computes the element-wise inverse hyperbolic secant of the argument. * asin — sine inverse (radians) * asind — sine inverse, results in degree * asinh — hyperbolic sine inverse * asinhm — matrix hyperbolic inverse sine * asinm — matrix wise sine inverse * atan — 2-quadrant and 4-quadrant inverse tangent * atand — 2-quadrant and 4-quadrant element-wise inverse tangent, result in degree. * atanh — hyperbolic tangent inverse * atanhm — matrix hyperbolic tangent inverse * atanm — square matrix tangent inverse * conj — conjugate * cos — cosine function * cosd — element-wise cosine function, argument in degree * cosh — hyperbolic cosine * coshm — matrix hyperbolic cosine * cosm — matrix cosine function * cotd — cotangent * cotg — cotangent * coth — hyperbolic cotangent * cothm — matrix hyperbolic cotangent * csc — Computes the element-wise cosecant of the argument. * cscd — Computes the element-wise cosecant of the argument given in degree. * csch — Computes the element-wise hyperbolic cosecant of the argument. * csgn — Returns the sign of a vector of real of complex values. * sec — Compute the element-wise secant of the argument. * secd — Compute the element-wise secant of the argument given in degree. * sech — Compute the element-wise hyperbolic secant of the argument. * sin — sine function * sinc — sinc function * sind — sine function, argument in degree. * sinh — hyperbolic sine * sinhm — matrix hyperbolic sine * sinm — matrix sine function * tan — tangent * tand — tangent, argument in degree. * tanh — hyperbolic tangent * tanhm — matrix hyperbolic tangent * tanm — matrix tangent
dnaupd — Interface for the Implicitly Restarted Arnoldi Iteration, to compute approximations to a few eigenpairs of a real linear operator
dneupd — Interface for the Implicitly Restarted Arnoldi Iteration, to compute the converged approximations to eigenvalues of A*z = lambda*B*z approximations to a few eigenpairs of a real linear operator
dsaupd — Interface for the Implicitly Restarted Arnoldi Iteration, to compute approximations to a few eigenpairs of a real and symmetric linear operator
dseupd — Interface for the Implicitly Restarted Arnoldi Iteration, to compute approximations to the converged approximations to eigenvalues of A*z = lambda*B*z
znaupd — Interface for the Implicitly Restarted Arnoldi Iteration, to compute a few eigenpairs of a complex linear operator OP with respect to a semi-inner product defined by a hermitian positive semi-definite real matrix B.
zneupd — Interface for the Implicitly Restarted Arnoldi Iteration, to compute approximations to the converged approximations to eigenvalues of A*z = lambda*B*z
Neldermead * fminsearch — Computes the unconstrained minimimum of given function with the Nelder-Mead algorithm. * neldermead — Provides several direct search optimization algorithms based on the simplex method. * neldermead_overview — An overview of the Nelder-Mead toolbox. * nmplot — Provides several direct search optimization algorithms based on the simplex method. * optimget — Queries an optimization data structure. * optimplotfunccount — Plot the number of function evaluations of an optimization algorithm * optimplotfval — Plot the function value of an optimization algorithm * optimplotx — Plot the value of the parameters of an optimization algorithm * optimset — Configures and returns an optimization data structure.
2d_plot * LineSpec — to quickly customize the lines appearance in a plot * Matplot — 2D plot of a matrix using colors * Matplot1 — 2D plot of a matrix using colors * Matplot_properties — description of the Matplot entities properties * Sfgrayplot — smooth 2D plot of a surface defined by a function using colors * Sgrayplot — smooth 2D plot of a surface using colors * champ — 2D vector field plot * champ1 — 2D vector field plot with colored arrows * champ_properties — description of the 2D vector field entity properties * comet — 2D comet animated plot. * contour2d — level curves of a surface on a 2D plot * contour2di — compute level curves of a surface on a 2D plot * contourf — filled level curves of a surface on a 2D plot * errbar — add vertical error bars on a 2D plot * fchamp — direction field of a 2D first order ODE * fcontour2d — level curves of a surface defined by a function on a 2D plot * fec — pseudo-color plot of a function defined on a triangular mesh * fec_properties — description of the fec entities properties * fgrayplot — 2D plot of a surface defined by a function using colors * fplot2d — 2D plot of a curve defined by a function * grayplot — 2D plot of a surface using colors * grayplot_properties — description of the grayplot entities properties * graypolarplot — Polar 2D plot of a surface using colors * histplot — plot a histogram * oldplot — simple plot (old version) * paramfplot2d — animated plot of a 2D parametrized curve. * plot — 2D plot * plot2d — 2D plot * plot2d1 — 2D plot (logarithmic axes) (obsolete) * plot2d2 — 2D plot (step function) * plot2d3 — 2D plot (vertical bars) * plot2d4 — 2D plot (arrows style) * plot2d_old_version — The syntaxes described below are obsolete * polarplot — Plot polar coordinates
3d_plot * comet3d — 3D comet animated plot. * contour — level curves on a 3D surface * eval3d — values of a function on a grid * eval3dp — compute facets of a 3D parametric surface * fac3d — 3D plot of a surface (obsolete) * fcontour — level curves on a 3D surface defined by a function * fplot3d — 3D plot of a surface defined by a function * fplot3d1 — 3D gray or color level plot of a surface defined by a function * genfac3d — compute facets of a 3D surface * geom3d — projection from 3D on 2D after a 3D plot * hist3d — 3D representation of a histogram * mesh — 3D mesh plot * milk_drop — milk drop 3D function * nf3d — rectangular facets to plot3d parameters * param3d — 3D plot of a parametric curve * param3d1 — 3D plot of parametric curves * param3d_properties — description of the 3D curves entities properties * plot3d — 3D plot of a surface * plot3d1 — 3D gray or color level plot of a surface * plot3d2 — plot surface defined by rectangular facets * plot3d3 — mesh plot surface defined by rectangular facets * secto3d — 3D surfaces conversion * surf — 3D surface plot * surface_properties — description of the 3D entities properties
annotation * captions — draw graph captions * label_properties — description of the Label entity properties * legend — draw graph legend * legend_properties — description of the Legend entity properties. * legends — draw graph legend * title — display a title on a graphic window * xlabel — label z-axis * xtitle — add titles on a graphics window
axes_operations * axes_properties — description of the axes entity properties * gca — Return handle of current axes. * gda — Return handle of default axes. * graduate — pretty axis graduations * isoview — set scales for isometric plot (do not change the size of the window) * newaxes — Creates a new Axes entity * plotframe — plot a frame with scaling and grids. This function is obsolete. * replot — redraw the current graphics window with new boundaries * rotate_axes — Interactive rotation of an Axes handle. * sca — set the current axes entity * sda — Set default axes. * subplot — divide a graphics window into a matrix of sub-windows * unzoom — unzoom graphics * zoom_rect — zoom a selection of the current graphic figure
bar_histogram * bar — bar histogram * barh — horizontal display of bar histogram * barhomogenize — homogenize all the bars included in the current working axes
Color management * addcolor — add new colors to the current colormap * autumncolormap — red through orange to yellow colormap * bonecolormap — gray colormap with a light blue tone * color — returns the color id of a color * color_list — list of named colors * colorbar — draw a colorbar * colordef — Set default color values to display different color schemes * colormap — using colormaps * coolcolormap — cyan to magenta colormap * coppercolormap — black to a light copper tone colormap * getcolor — opens a dialog to show colors in the current colormap * graycolormap — linear gray colormap * hotcolormap — red to yellow colormap * hsv2rgb — Converts HSV colors to RGB * hsvcolormap — Hue-saturation-value colormap * jetcolormap — blue to red colormap * name2rgb — returns the RGB values of a named color * oceancolormap — linear blue colormap * pinkcolormap — sepia tone colorization on black and white images * rainbowcolormap — red through orange, yellow, green,blue to violet colormap * rgb2name — returns the name of a color * springcolormap — magenta to yellow colormap * summercolormap — green to yellow colormap * whitecolormap — completely white colormap * wintercolormap — blue to green colormap
Datatips * datatipCreate — Create a data tip on a polyline by program * datatipGetEntities — Get all the entities compatible with datatips in the given axes. * datatipGetStruct — Extract the datatips data structure infrom the curve or surface entity. * datatipInitStruct — initialize the datatip structure associated with the given polyline. * datatipManagerMode — Set or toggles the data tips mode. * datatipMove — Move a specified datatip using the mouse. * datatipRedraw — Adjust datatip text boxes positions after a 3D rotation * datatipRemove — Removes a selected datatip * datatipRemoveAll — Removes all datatips on a set of polylines. * datatipSetDisplay — Search the nearest datatip of a given point. * datatipSetInterp — Set the interpolation mode for tip location. * datatipSetOrientation — Search the nearest datatip of a given point. * datatipSetStruct — Stores the datatips data structure in the curve or surface entity. * datatipToggle — toggles the data tips mode. * datatips — Tool for placing and editing tips along the plotted curves. * orthProj — Computes the orthogonal projection of a point to a polyline in the plane.
figure_operations * clf — clear or reset the current graphic figure (window) to default values * drawlater — makes axes children invisible. * drawnow — draw hidden graphics entities. * figure_properties — description of the graphics figure entity properties * gcf — Return handle of current graphic window. * gdf — Return handle of default figure. * scf — set the current graphic figure (window) * sdf — Set default figure.
geometric_shapes * arc_properties — description of the Arc entity properties * rectangle_properties — description of the Rectangle entity properties * xarc — draw a part of an ellipse * xarcs — draw parts of a set of ellipses * xarrows — draw a set of arrows * xfarc — fill a part of an ellipse * xfarcs — fill parts of a set of ellipses * xfrect — fill a rectangle * xrect — draw a rectangle * xrects — draw or fill a set of rectangles
handle * copy — copy a graphics entity. * delete — delete a graphic entity and its children. * draw — draw an entity. * gce — Get current entity handle. * ged — Scilab Graphic Editor * get_figure_handle — get a figure handle from its id * glue — glue a set of graphics entities into an Compound. * is_handle_valid — Check wether a set of graphic handles is still valid. * relocate_handle — Move handles inside the graphic hierarchy. * sd2sci — gr_menu structure to scilab instruction convertor * swap_handles — Permute two handles in the graphic Hierarchy. * unglue — unglue a coumpound object and replace it by individual children.
interaction * dragrect — Drag rectangle(s) with mouse * edit_curv — interactive graphic curve editor * eventhandlerfunctions — Prototype of functions which may be used as event handler. * locate — mouse selection of a set of points * seteventhandler — set an event handler for the current graphic window * xclick — Wait for a mouse click. * xgetmouse — get the mouse events and current position
load_save * xload — load a saved graphics * xsave — save graphics into a file
polygon * polyline_properties — description of the Polyline entity properties * xfpoly — fill a polygon * xfpolys — fill a set of polygons * xpoly — draw a polyline or a polygon * xpolys — draw a set of polylines or polygons * xrpoly — draw a regular polygon
property * get — Retrieve a property value from a graphics entity or an User Interface object. * set — set a property value of a graphic entity object or of a User Interface object.
style * getlinestyle — dialog to select linestyle. Obsolete function. * getmark — dialog to select mark (symbol). Obsolete function * getsymbol — dialog to select a symbol and its size. Obsolete function
text * getfont — dialog to select font . Obsolete function. * graphics_fonts — description of fonts used in graphic figures * math_rendering_features_in_graphic — Display mathematical equations in Scilab graphics through the LaTeX or MathML languages. * stringbox — Compute the bounding rectangle of a text or a label. * text_properties — description of the Text entity properties * titlepage — add a title in the middle of a graphics window * xinfo — draw an info string in the message subwindow * xlfont — load a font in the graphic context or query loaded font * xstring — draw strings * xstringb — draw strings into a box * xstringl — compute a box which surrounds strings
transform * move — move, translate, a graphic entity and its children. * rotate — rotation of a set of points * scaling — affine transformation of a set of points
Batch functions * lincos — Constructs by linearization a linear state-space model from a general dynamical system described by a xcos diagram * scicos — OBSOLETE - see xcos * scicos_simulate — Function for running xcos simulation in batch mode * scicosim — xcos (batch) simulation function * steadycos — Finds an equilibrium state of a general dynamical system described by a xcos diagram
Scilab Utilities Functions * block_parameter_error — Displays a parameter input error box for an Xcos block * buildouttb — Build of the sublist %cpr.state.outtb * create_palette — Palette generator * getModelicaPath — Get the Modelica directory path needed by Xcos diagram containing Modelica blocks * get_scicos_version — Get the current Scicos version * importXcosDiagram — Import an Xcos diagram on Scilab * loadScicos — Load the Xcos simulation native library. * loadXcosLibs — Load most of the Xcos macros * scicos_debug — Set the level of the Scicos debugging * var2vec — Transform a scilab variable in a vector of double * vec2var — Transform a vector of double in a scilab variable * xcosPal — Instanciate a new Xcos palette on Scilab. * xcosPalAdd — Add a palette to the Scilab/Xcos palette manager. Optional property can be added to set the category of the palette. * xcosPalAddBlock — Add a block to a Scilab/Xcos palette instance. Some optional properties can be added to customize the palette icon and the style of the block. * xcosPalExport — Export a palette instance to a path.
xcos — Block diagram editor and GUI for the hybrid simulator
profiling * add_profiling — Adds profiling instructions to a function. * plotprofile — extracts and displays execution profiles of a Scilab function * profile — extract execution profiles of a Scilab function * remove_profiling — Removes profiling instructions toout of a function. * reset_profiling — Resets profiling counters of a function. * showprofile — extracts and displays execution profiles of a Scilab function
bytecode — given a function returns the "bytecode" of a function in a Scilab array and conversely.
bytecodewalk — walk in function bytecode applying transformation.
Scilab Gateway API * How to * CallingAScilabFunctionFromACInterface — Calling a scilab function (macros) from a C interface * CheckLhs — C macro which checks the number of output arguments present in the calling Scilab function. * CheckRhs — C macro which checks the number of input arguments present in the calling Scilab function. * Lhs — A C gateway function which provides the number of output arguments present in the calling Scilab function * LhsVar — a C gateway function which specifies which parameters created inside the C gateway will be returned as an output argument into Scilab. * Rhs — A C gateway function which provides the number of input arguments present in the calling Scilab function * Scierror — C gateway function which displays an error message to the user (same profil as the printf function) and returns an integer value specifying an error level * sci_types — a C enumeration which defines the types available for a variable * sciprint — A C gateway function which displays standard messages to the user (same profil as the C printf function)
creadbmat — Read a single boolean or a matrix of boolean from Scilab memory using call_scilab. Starting with Scilab 5.2, this function is obsolete. See API_Scilab: Boolean reading for remplacement.
creadchain — Read a single string from Scilab memory using call_scilab. Starting with Scilab 5.2, this function is obsolete. See API_Scilab: String reading for remplacement.
creadcmat — Read a single complex or a matrix of complex from Scilab memory using call_scilab. Starting with Scilab 5.2, this function is obsolete. See API_Scilab: Complex double reading for remplacement.
creadmat — Read a single double or a matrix of double from Scilab memory using call_scilab. Note that it is the default datatype in Scilab. Starting with Scilab 5.2, this function is obsolete. See API_Scilab: Double reading for remplacement.
cwritebmat — Write a single boolean or a matrix of boolean into Scilab memory using call_scilab. Starting with Scilab 5.2, this function is obsolete. See API_Scilab: Boolean writing for remplacement.
cwritechain — Write a single string into Scilab memory using call_scilab. Starting with Scilab 5.2, this function is obsolete. See API_Scilab: String writing for remplacement.
cwritecmat — Write a single complex or a matrix of complex into Scilab memory using call_scilab. Starting with Scilab 5.2, this function is obsolete. See API_Scilab: Complex double writing for remplacement.
cwritemat — Write a single double or a matrix of double into Scilab memory using call_scilab. Note that it is the default datatype in Scilab. Starting with Scilab 5.2, this function is obsolete. See API_Scilab: Double writing for remplacement.
fromc — Checks if current Scilab is called from an external C program (by StartScilab).
fromjava — Checks if current Scilab is called from javasci