MATRIX OPERATION in SCILAB

Scilab is like a heaven for Linear Algebra related problems, as it recognizes matrices and their operations.
Defining a matrix is easy and simple. There are a lot of in-built functions to perform various tasks like transposing a matrix, multiplying or adding matrices and more.

The following are some of the examples of various Matrix Operations in Scilab.

//Matrix Operations
clc;
A=[1,2,3;4,5,6;7,8,9];
B=[%i,2,3;-%i,3,3;1,1,3];
disp(A*B,"The multiplication of Matrix A with B:");
disp(A+B,"The sum of the Matrices A and B:");
disp(A',"The transpose of the matrix A:");
disp(B',"The transpose of the matrix B:");
disp(det(A),"The determinant of A is:");
disp(det(B),"The determinant of B is:");

Output:
matrix operations in scilab

 

 

I'm a physicist specializing in theoretical, computational and experimental condensed matter physics. I like to develop Physics related apps and softwares from time to time. Can code in most of the popular languages. Like to share my knowledge in Physics and applications using this Blog and a YouTube channel.



Leave a Reply

Your email address will not be published. Required fields are marked *