Code covered by the BSD License  

Highlights from
Matrices program with a script for eigenvalues perturbations

Be the first to rate this file! 1 Download (last 30 days) File Size: 4.28 KB File ID: #30348

Matrices program with a script for eigenvalues perturbations

by Emanuele Natale

 

09 Feb 2011

Some simple programs and a script, that could be usefull using "Trajectories of eigenvalues"

| Watch this File

File Information
Description

(The comments in the program are in italian, I'm sorry.)

In this archive there are just some simple functions about matrices, expecially to be used with the program perteig.m called "Trajectories of eigenvalues" you can find among the file by the same author in the file exchange.

-impdata
impdata.m
scripts that imports the matrices A and B written in the files mrealA (with the real part of A), mimgA (with the imaginary part of A), mrealB (with the real part of B), mimgB (with the imaginary part of B), then prints their determinants, and finally run the function perteig(A,B,N) (with N set to 100 in the text, naturally you could change it as you want!).

-wmatrix
wmatrix(A,file)
write the matrix A in "file"

-turn
turn(alpha)
creates a simple 2x2 matrix that corresponds to a rotation of the plane respect to the origin (of angle alpha).

-submatrix
submatrix(A,r,c)
function that erase the row r and the column c of the matrix A, obtaining the corresponding submatrix. If we want to erase just a row or a column, we set r or c greater that the respective dimension of A.

-randmatrices
randmatrices(n,kA,kB)
function that creates two complex matrices with entries being random integer ranging from kA/2 to -kA/2, and produces four csv files: mrealA (with the real part of A), mimgA (with the imaginary part of A), mrealB (with the real part of B), mimgB (with the imaginary part of B).

-randint
randint(m,n,r)
function that creates a mxn matrix with entries being random positive integer.

-minmaxelem
[min,max]=minmaxelem(A)
function that finds the minimal and maximal element among those of the matrix A.

-elemsum
elemsum(A)
function that sums the elements of the matrix A.

-defmatrix
matrix.m
script that defines the matrix as written in the m-file. Usefull in some cases, if you want to quickly change some elements.

Acknowledgements

Trajectories Of Eigenvalues inspired this file.

This file inspired Trajectories Of Eigenvalues.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
eigenvalues, linear algebra, matrices, perturbation, random matrices
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us