You are on page 1of 2

Spoken Tutorial on Scilab for Linux Users

Spoken Tutorial Team IIT Bombay


The procedure to practise 1. You are given a set of spoken tutorials and les either in a CD or already copied on your Desktop. 2. You will typically do one tutorial at a time. 3. The tutorials are numbered from 0 to 9. 4. Follow the tutorials in sequence for a better understanding. Please nd out from the workshop co-ordinator whether Scilab is already installled. If so please skip the Section 1. 3. Right click on 02-Getting-Started.wmv ,click on Open with option and select VLC Media Player to play the tutorial. 4. Follow the tutorial and reproduce all the commands on your Scilab Console as shown in the video. 5. Pause the tutorial when mentioned in the video and attempt any one assignment problem given in the video and/or on the assignment sheet given to you. 6. At 5:34 - The diary() command stores the Scilab session in a le after you issue the command and not before that. 7. At 5:34 - Change the directory to Destination where you have write access, preferably change it to Desktop before issuing the diary() command. 8. At 6:00 - Pause the tutorial and attempt the assignment problem given in the video and/or on the assignment sheet given to you. 9. At 7:49 - In the answer D-17 denotes 1017

Scilab Installation (Linux):

In this section you will learn how to install Scilab on Linux Operating System. 1. Make sure you are connected to the Internet. 2. Go to System > Administration > Synaptic Pakage Manager on the title bar of the Ubuntu Desktop. 3. Type Scilab in the Seach option of the Synaptic Pakage Manager.

Vector Operations:

4. Click on the Scilab from the search results and Tutorial required: 03-Vector-Operations.wmv This tutorial covers how to dene vectors and matriClick on Mark for Installation. ces in Scilab, and how to perform some basic arith5. A window will pop up asking for permission, metic operations on vectors. click on Mark button. 1. Open Scilab as mentioned in Section-2. 6. Now Click on Apply button on the Synaptic Pakage Managers Properties Toolbar. 7. A window will pop up asking for permission, click on Apply button. 8. This will install Scilab on your System. 9. Launch Scilab from Applications > Programming > Scilab on the title bar of the Ubuntu Desktop. 2. Right click on 03-Vector-Operations.wmv ,click on Open with option and select VLC Media Player to play the tutorial. 3. Please follow the tutorial and reproduce all the commands as shown in the video. 4. Pause the tutorial when mentioned in the video and attempt any one assignment problem given in the video and/or on the assignment sheet given to you.

Getting Started with Scilab:

4 Matrix Operations: Tutorial required: 02-Getting-Started.mov In this tutorial you will learn about some of the very Tutorial required: 04-Matrix-Operations.wmv basic functionalities of Scilab. In this tutorial you will learn some of the most basic 1. Go to Applications > Programming > Scilab but frequently used arithmetic operations on matrices. The main motivation of this tutorial is to give on the title bar of the Ubuntu Desktop. you a head start about using vectors and matrices 2. This will open Scilab console window on your in Scilab. computer to simultaneously practise the com1. Open Scilab as mentioned in Section-2, point-1 mands.

2. Open 04-Matrix-Operations.wmv plained in Section-2, point-3 3. Follow Points-4 and 5 in Section-2

as ex-

1. Open Scilab as mentioned in Section-2, point-1 2. Open 07-Iterations-mov.mov as explained in Section-2, point-3 3. Follow Points-4 and 5 in Section-2

4. At 1:55 - Notice the type of bracket used in the command, its is round bracket and not the square bracket.. 5. At 11:18 - Matrix A represents a matrix of coecients of x1, x2, x3 in the equations.

Plotting 2D Graphs:

Tutorial required: 08-Plotting2dGraphs-mov.mov 6. At 11:46 - Matrix b represnts a matrix of constants in the equations. In this tutorial we will learn about the in-built functions like linspace(), plot(), plot2d(). We will also demonstrate how to change the properties of gures 5 Scripts and Functions: using various commands. Tutorial required:05-Scripts-and-Functions.wmv 1. Open Scilab as mentioned in Section-2, point-1 In this tutorial you will learn how to write script 2. Open 08-Plotting2dGraphs-mov.mov as exles (.sci les) and function les (.sce les). Also plained in Section-2, point-3 we will see how to load and execute user-dened 3. Follow Points-4 and 5 in Section-2 functions in the Scilab console. 1. Open Scilab as mentioned in Section-2, point-1 2. Open 05-Scripts-and-Functions.wmv explained in Section-2, point-3 3. Follow Points-4 and 5 in Section-2 as

Ordinary tions:

Dierential

Equa-

Tutorial required: 09-odes.mov 4. At 2:10 - Pause the tutorial, open Scilab editor This tutorial is designed to familiarize the partic,type the commands in the editor yourself and ipants with solving ordinary dierential equations save the le as helloworld.sce using the Scilab procedure, ode. 5. At 3:25 - Type pwd to check the present 1. Open Scilab as mentioned in Section-2, point-1 working directory; change the directory using Change Directory shortcut icon to 2. Open 09-odes.mov as explained in Section-2, the directory where you have saved the point-3 helloworld.sce le before using the exec 3. Follow Points-4 and 5 in Section-2 command.

Conditional Branching:

10

Polynomials:

Tutorial required: 06-Conditional-Branching-mov.mov In this tutorial we will discuss two types of Conditional constructs in Scilab, which are, the if-thenelse construct and the select-case conditional construct. 1. Open Scilab as mentioned in Section-2, point-1 2. Open 06-Conditional-Branching-mov.mov as explained in Section-2, point-3 3. Follow Points-4 and 5 in Section-2

Tutorial required: 10-polynomials.mov In this tutorial we will see the use of Scilab to create polynomials, nd their roots and perform operations on them such as addition, subtraction, multiplication, division, simplication, etc. 1. Open Scilab as mentioned in Section-2, point-1 2. Open 10-polynomials.mov Section-2, point-3. as explained in

3. Follow Points-4 and 5 in Section-2

Iterations:

11

Why Scilab:

Tutorial required: 00-Why-Scilab.wmv Tutorial required: 07-Iterations-mov.mov In this tutorial we will discuss about the for-loop and In this tutorial you will get an overview about the capabilities of Scilab and the benets of using Scilab. the while-loop, used for iterative calulations.

You might also like