Professional Documents
Culture Documents
SOFTWARE REQUIRED: PC loaded with SCILAB software THEORY: Vectors are special forms of matrices
and contain only one row or one column. Whereas scalars are special forms of matrices and contain only
one row and one column. A matrix with one row is called row vector and a matrix with single column is
called column vector.
PROCEDURE:
1. Click on SCILAB Icon
2. Click on launch scinotes.
3. Type the program on editor window
4. Save the program with filename.sce extension
5. Execute the program and observe the output.
Program
A= input('Enter the matrix A ::');
B= input('Enter the matrix B ::');
Output-
Enter the matrix A ::[1,4;1,6]
2. 2.
2. 2.
2. 6.
2. 9.
0. 2.
0. 3.
1. 18.
2.
2.
2.
2. 2.
7.
4.
3. -2.
-0.5 0.5
3. -2. -1. 1.
SHRI RAMSWAROOP MEMORIAL
UNIVERSITY
IT WORKSHOP LAB
(BCS 4520)
LAB FILE
SESSION: 2021-2022
10