Eigenvalues and Eigenvectors in SCILAB

Scilab has an inbuilt function called spec(A) to calculate the Eigenvalues of a Matrix A.
If you type,
where d is a diagonal matrix which contains the eigen-values,
and c is a matrix that stores the eigen-vectors as it’s columns.

The following code illustrates the use of the function spec(A) to print the eigenvalues and eigenvectors of Matrices.

//Eigenvalues and Eigenfunctions
disp(spec(A),"The Eigen-values of matrix A are:");
disp(c,"The corresponding Eigen-vectors of matrix A is:");
disp(spec(B),"The Eigen-values of matrix B are:");
disp(e,"The corresponding Eigen-vectors of matrix B is:");
disp(spec(C),"The Eigen-values of matrix C are:");
disp(g,"The corresponding Eigen-vectors of matrix C is:");




[wpedon id="7041" align="center"]

2 thoughts on “Eigenvalues and Eigenvectors in SCILAB

  1. Dear Sir,
    I am a Ph.D. student and working on DFT. I want to learn Siesta but there are very limited materials I get from google. Please make some videos on Siesta.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.