Scilab Windows

2

Click here to load reader

Transcript of Scilab Windows

Page 1: Scilab Windows

Spoken Tutorial on Scilab for Windows UsersSpoken Tutorial Team

IIT Bombay

The procedure to practise

1. You are given a set of spoken tutorials and fileseither in a CD or already copied on your Desk-top.

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 betterunderstanding.

Please find out from the workshop co-ordinatorwhether Scilab is already installled.If so please skip the Section 1.

1 Scilab Installation (Windows):

Tutorial required: 01-Installation-Windows.wmvIn this tutorial you will learn how to install Scilabon Windows Operating System.

1. Please locate the folder Scilab Workshop thatis available on your Desktop, this folder con-tains all the Scilab tutorials.

2. Please locate the tutorial01-Installation-Windows.wmv, open it us-ing VLC Media Player and listen to the tu-torial.

3. Please follow the tutorial as shown in thevideo.

2 Getting Started with Scilab:

Tutorial required: 02-Getting-Started.wmvIn this tutorial you will learn about some of the verybasic functionalities of Scilab.

1. Double Click on the Scilab Shortcut icon onyour Desktop to launch Scilab.

2. This will open Scilab console window on yourcomputer to simultaneously practise the com-mands.

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 com-mands on your Scilab Console as shown in thevideo.

5. Pause the tutorial when mentioned in thevideo and attempt any one assignment prob-lem given in the video and/or on the assign-ment sheet given to you.

6. At 5:34 - The diary() command stores theScilab session in a file after you issue the com-mand and not before that.

7. At 5:34 - Change the directory to Destinationwhere you have write access, preferably changeit to Desktop before issuing the diary() com-mand.

8. At 6:00 - Pause the tutorial and attempt theassignment problem given in the video and/oron the assignment sheet given to you.

9. At 7:49 - In the answer D-17 denotes 10−17

3 Vector Operations:

Tutorial required: 03-Vector-Operations.wmvThis tutorial covers how to define vectors and matri-ces in Scilab, and how to perform some basic arith-metic operations on vectors.

1. Open Scilab as mentioned in Section-2.

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 thecommands as shown in the video.

4. Pause the tutorial when mentioned in thevideo and attempt any one assignment prob-lem given in the video and/or on the assign-ment sheet given to you.

4 Matrix Operations:

Tutorial required: 04-Matrix-Operations.wmvIn this tutorial you will learn some of the most basicbut frequently used arithmetic operations on matri-ces. The main motivation of this tutorial is to giveyou a head start about using vectors and matricesin Scilab.

1. Open Scilab as mentioned in Section-2, point-1

2. Open 04-Matrix-Operations.wmv as ex-plained in Section-2, point-3

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

Page 2: Scilab Windows

4. At 1:55 - Notice the type of bracket used inthe command, its is round bracket and not thesquare bracket..

5. At 11:18 - Matrix A represents a matrix of co-efficients of x1, x2, x3 in the equations.

6. At 11:46 - Matrix b represnts a matrix of con-stants in the equations.

5 Scripts and Functions:

Tutorial required:05-Scripts-and-Functions.wmv

In this tutorial you will learn how to write scriptfiles (.sci files) and function files (.sce files). Alsowe will see how to load and execute user-definedfunctions in the Scilab console.

1. Open Scilab as mentioned in Section-2, point-1

2. Open 05-Scripts-and-Functions.wmv asexplained in Section-2, point-3

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

4. At 2:10 - Pause the tutorial, open Scilab editor,type the commands in the editor yourself andsave the file as helloworld.sce

5. At 3:25 - Type pwd to check the presentworking directory; change the directoryusing Change Directory shortcut icon tothe directory where you have saved thehelloworld.sce file before using the exec

command.

6 Conditional Branching:

Tutorial required:06-Conditional-Branching-mov.mov

In this tutorial we will discuss two types of Condi-tional constructs in Scilab, which are, the “if-then-else” construct and the “select-case” conditional con-struct.

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

7 Iterations:

Tutorial required: 07-Iterations-mov.movIn this tutorial we will discuss about the for-loop andthe while-loop, used for iterative calulations.

1. Open Scilab as mentioned in Section-2, point-1

2. Open 07-Iterations-mov.mov as explainedin Section-2, point-3

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

8 Plotting 2D Graphs:

Tutorial required: 08-Plotting2dGraphs-mov.mov

In this tutorial we will learn about the in-built func-tions like linspace(), plot(), plot2d(). We will alsodemonstrate how to change the properties of figuresusing various commands.

1. Open Scilab as mentioned in Section-2, point-1

2. Open 08-Plotting2dGraphs-mov.mov as ex-plained in Section-2, point-3

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

9 Ordinary Differential Equa-tions:

Tutorial required: 09-odes.movThis tutorial is designed to familiarize the partic-ipants with solving ordinary differential equationsusing the Scilab procedure, “ode”.

1. Open Scilab as mentioned in Section-2, point-1

2. Open 09-odes.mov as explained in Section-2,point-3

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

10 Polynomials:

Tutorial required: 10-polynomials.movIn this tutorial we will see the use of Scilab to createpolynomials, find their roots and perform operationson them such as addition, subtraction, multiplica-tion, division, simplification, etc.

1. Open Scilab as mentioned in Section-2, point-1

2. Open 10-polynomials.mov as explained inSection-2, point-3.

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

11 Why Scilab:

Tutorial required: 00-Why-Scilab.wmvIn this tutorial you will get an overview about thecapabilities of Scilab and the benefits of using Scilab.