need help on Matlab code
时间:03-31
整理:3721RD
点击:
Hello.
Can anyone help me in producing a Matlab code that will read a sparse matrix and then calculate the eigenvalues of it, show the sparsity pattern of it etc. I have the the sparse matrix data in compressed sparse row (CSR), compressed sparse column (CSC) formats and also in Co-ordinate format. But as co-ordinate format takes large storage I would prefer CSR or CSC format. I usually use Fortran but Matlab has some readily available mathematical functions and therefore I need this matlab code. Any support on Matlab code is highly appreciated. Thank you
Can anyone help me in producing a Matlab code that will read a sparse matrix and then calculate the eigenvalues of it, show the sparsity pattern of it etc. I have the the sparse matrix data in compressed sparse row (CSR), compressed sparse column (CSC) formats and also in Co-ordinate format. But as co-ordinate format takes large storage I would prefer CSR or CSC format. I usually use Fortran but Matlab has some readily available mathematical functions and therefore I need this matlab code. Any support on Matlab code is highly appreciated. Thank you
In MATLAB, type 'help eigs' This will show you how to use the function eigs to compute the eigenvalues. Visualizing it may be more difficult depending on the size of the matrix. If it is small enough, the imagesc command will work well. If it is very large, I'd have to give it more thought.
-tip