Matrices program with a script for eigenvalues perturbations

Some simple programs and a script, that could be usefull using "Trajectories of eigenvalues"
420 Downloads
Updated 9 Feb 2011

View License

(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.

Cite As

Emanuele Natale (2024). Matrices program with a script for eigenvalues perturbations (https://www.mathworks.com/matlabcentral/fileexchange/30348-matrices-program-with-a-script-for-eigenvalues-perturbations), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Linear Algebra in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Trajectories of eigenvalues

Inspired: Trajectories of eigenvalues

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0