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:");
Ph.D. researcher at Friedrich-Schiller University Jena, Germany. I’m a physicist specializing in computational material science. I write efficient codes for simulating light-matter interactions at atomic scales. I like to develop Physics, DFT, and Machine Learning related apps and software from time to time. Can code in most of the popular languages. I like to share my knowledge in Physics and applications using this Blog and a YouTube channel.