Module 1 : Introductory Programming
Chapter 8 : Some Useful Public Domain Softwares
 

You can do simple calculations in scilab as follows.

8.3 Simple Operations using SCILAB

-->a=2

-->b=2

-->a + b

Then you get the output as

ans = 4.

Before going into further discussion about numerical calculations with scilab, let us discuss about some very useful commands helpful for using Scilab.

pwdIt will print the current working directory of scilab (when you start scilab, the default directory is C:\Program Files (x86)\scilab-5.2.2
ls- List all the files in the current working directory

cd or chdir These commands will change the current working directory. e.g. if you want to change current directory to scilab folder (directory) in D drive then you have to write as

cd D:\scilabdiary Saves the entire content of the scilab work space to one file. e.g. diary (‘content.txt’) will save the entire content of the scilab work space to content.txt. When enter the command diary(‘content.txt’), you will be prompted as ans    = 1 

Then you may type whatever commands you want to execute.
After  completing the current work, we need to close the directory by using the command.

diary(0)- You will now find that the file content.txt is saved in the current working directory. In place of content.txt, you may choose any other file name.