Professional Documents
Culture Documents
Introduction To Scilab.....................................................................................................................................................2
Downloading And Installing.............................................................................................................................................2
Mathematical Operations...............................................................................................................................................3
Matrices.......................................................................................................................................................................... 6
ConditionalBranching....................................................................................................................................................10
Loop Statements...........................................................................................................................................................11
Functions....................................................................................................................................................................... 13
Plot 2D function............................................................................................................................................................13
Introduction To Scilab
1. The word Scilab is made up of two words Sci means Scientific and lab means
Laboratory
2. It is Free and Open Source (FOSS) software Available for various OS (Windows ,Linux ,
….)
3. It is a Mathematical and scientific calculation software which works as a substitute for
MATLAB
4. It is also a high productivity tool means one can quickly develop the code required to solve
problems. Typically, if it takes ten lines of C code for some calculation, Scilab would require
only one for the same purpose.
Handling imaginary no
Predefined variables Pi
Representing Exponential
Representing Log
Matrices
Defining a matrix
Power of matrix
Adding row to a matrix
If else
Case
Loop Statements
For
while
Functions
Write the function in sci notes and save it in the current directory with the extension .sci
Plot 2D function
clf
x=[-1:.01:20]'
plot2d(x,[x-4,cos(x)],[7,9],leg="a@b")
xtitle("a","x","y")
a=gca();
a.x_location = "origin";
a.y_location = "origin";