Scilab Practical Lab File Work for BCA/B.Sc. Semester-I – 2025

Title/Experiments Name

1. How to Downloading and Installation of Scilab? Write necessary steps?

2. How to open/startting the SciLab environment. List its main components and Quitting (exit/close) the Scilab program.

3. Explain and use the the following SCILAB COMMANDS on Scilab Console:  

      (i) clc (ii) clear (iii) clock (iv) date (v) ls (vi) clf (vii) pwd (viii) quit (ix) mkdir (x) clear

4. Perform all arithmetic operation (addition(+), subtraction(-), multiplication(*),division(/ (right) and \ (left) )

      and power (^ or **) of two numbers in SciLab.

5. Plotting a single plot on the graph

6. Plotting  2D Graph of sin(x) and cos(x)

7.  CONSTRUCT/DECLARE SPECIAL TYPE OF MATRICES

Notes: Important terms to learn 

1.SciLab का पूरा नाम Scientific Laboratory है.

2.Sailab case सेन्सिटिव ह बड़े अक्षर एवम छोटे अक्षर की मीनिंग अलग- अलग होती है.

3.Sailab में कमांड छोटे अक्षर में लिखे जाते है.

4.अगर कमांड्स को सेव करके फाइल में स्टोर करना हो तो scinotes editor का उपयोग करे.

5.Scilab में कमांड रन करना व ressult चेक करना हो तो scilab console windows का use करे.

6.Console windows में command prompt (–>) पर एक लाइन में comma लगाकार कई कमांड्स लिख सकते हे.

Solutions:

Exp. No. – 1

How to Downloading and Installation of SciLab? Write necessary steps?

Objective: To understand the process of downloading and installing SciLab software.

Steps:

  • Go to the official website of SciLab: https://www.scilab.org/download
  • Select the appropriate version of SciLab for your operating system (Windows, Linux, macOS).
  • Download the installer and run it to install SciLab.
  • After installation, launch SciLab to start using the software.

Exp. No. – 2

How to Stating and Quitting (exit/close) the SciLab program

Stating the SciLab program

  • _ Start the SciLab program by double-clicking Scilab-5.2.1 icon on the desktop
  • _ Start button on the desktop >Programs>Scilab-5.2.1>Scilab-5.2.1 Automatically loading Tools for managing files, variables and applications
  • Main Components of Scilab Docked Windows:
    •  The console for making calculations,
    • The editor (SciNotes) for writing programs,
    • The graphics windows for displaying graphics,
    • The embedded help.
    • Variable Browser
    • Command History
    • File Browser

Quitting the SciLab program

  • _ To end SCILAB, File > quit in the scilab console
  • _ Type ‘quit’ in the Scilab Console
  • _ The user enters commands at the prompt —->

Exp. No. – 3

Explain and use the the following SCILAB COMMANDS on Scilab Console:  

      (i) clc (ii) clear (iii) clock (iv) date (v) ls (vi) clf (vii) pwd (viii) quit (ix) mkdir (x) help

Ans:

  1. clc – Clears command window

  2. clear – Removes the variable from memory

  3. clock –

  4. date-

  5. ls – List the files

  6. clf – clear graphic windows screen

  7. pwd – present working directory

  8. quit – to close the session

  9. mkdir- to create a new directory

  10. help- detailed help menu for scilab commands

Exp. No. – 4

Perform all arithmetic operation (addition(+), subtraction(-), multiplication(*),division(/ (right) and \ (left) )

and power (^ or **) of two numbers in SciLab.

Solution:

1.OPEN SCILAB SOFTWARE:

FROM DESTOP:  Select Scilab Shortcut Icon and Press double click

2.After open Scilab software at middle location display Scilab Console Windows.

3.Use the following command to  perform arithmetic Operations.

–> a=20
a =

20.

–> b=30
b =

30.

–> c=a+b
c =

50.

–> c= a*b
c =

600.

–> c=a/b
c =

0.6666667

–> c= a\b
c =

1.5

–> c= a^4
c =

160000.

–> disp(a,b)

20.

30.

Exp. No.- 5

Objective: Plotting a single plot on the graph

// Plotting a single plot on the graph
Clf()
x = [0:1:10];
y = x^2-10*x+15;
plot(x,y);
plot(x,z,'r','LineWidth',3)
xlabel('x');
ylabel(‘y');
title(“x^2-10*x+15”);

Output:

Exp. No-6

Objective: Plot 2D Graph of sin(x) and cos(x)

// Plotting graph of functions sin(x) and cos(x)
//multiple functions graphs
Clf()
x = [0:0.01:2*%pi];
y = sin(x);
z = cos(x);
plot(x,y,'LineWidth',3)
plot(x,z,'r','LineWidth',3)
xgrid
xlabel('x')
ylabel('sin(x), cos(x)')
title('Plot of sin(x) and cos(x)')
legend('sin(x)','cos(x)',3)

Output:

Exp. No-7

CONSTRUCT/DECLARE SPECIAL TYPE OF MATRICES

(a) EMPTY MATRIX

(b) ZERO MATRIX

(c) ONES MATRIX

(d) DIAGNOAL MATRIX

(e) IDENTITY MATRIX

(f) RANDOM MATRIX

(g) MATRIX DEFINE

Ans:

STEPS OF SOLUTION

  1. OPEN SCILAB SOFTWARE:

FROM DESTOP:  Select Scilab Shortcut Icon and Press double click

  1. After open Scilab software at middle location display Scilab Console Windows.
  2. Use the following command to create special type of matrices.

Exp.-2.1: DECLARE EMPTY MATRIX

TYPE THE FOLLOWING COMMAND AT COMMAND PROMPT (–>)

On Scilab Console windows : Output

 

 

 

Leave a Reply