Modeling and Simulation in Scilab/Scicos

The Scilab language was initially devoted to matrix operations, and scientific and engineering applications were its main target. But over time, it has considerably evolved, and currently the Scilab language includes powerful operators for manipulating a large class of basic objects.
In Scilab, objects are never declared or allocated explicitly; they have a dynamic type and their sizes can dynamically change according to applied operators or functions. The following Scilab session illustrates the creation of an object, its dynamic change, and its deletion. Note that the function typeof returns the type of the object, isdef tests the presence of the object, and clear destroys it and frees the corresponding memory.
<span class="inlinemediaobject"><img alt="Image from book"> border="0"> height="8"> id="IMG_5"> src="https://images.books24x7.com/bookimages/id_30981/figuarr_1.jpg"> title=""> width="35"></span>a= rand(2,3); <span class="unicode">?</span>2x3 random matrix a is created<span class="inlinemediaobject"><img alt="Image from book"> border="0"> height="8"> id="IMG_6"> src="https://images.books24x7.com/bookimages/id_30981/figuarr_2.jpg"> title=""> width="35"></span>typeof(a) <span class="unicode">?</span>type of a, constant stands for real or complex matrix <b class="bold">ans</b> = constant<span class="inlinemediaobject"><img alt="Image from book"> border="0"> height="8"> id="IMG_7"> src="https://images.books24x7.com/bookimages/id_30981/figuarr_3.jpg"> title=""> width="35"></span>a= [a, zeros(2,1)] ...