Wednesday 19 December 2018

How to find determinant and transpose of a matrix using SCILAB ?

Consider a matrix A,

1. Transpose of a matrix : If the rows and columns of the matrix are interchanged then resulting matrix is called the transpose of a given matrix.

If a matrix is having M rows and N columns then the transpose of a matrix will have N rows and M columns.

syntax : (Name of the matrix)'

Example : A' or (A)'



1. Determinant of a matrix : It is possible to find out determinant of the matrix if it is square matrix only.

syntax : det(A)



NOTE : If the matrix is not a square matrix, then the following error will be shown :
det: Wrong type for input argument #1: Square matrix expected.





No comments:

Post a Comment