(The comments in the program are in italian, I'm sorry.)
The program 'perteig' takes as input a matrix M, a perturbation matrix B and an integer T.
T define the accuracy of the final plot.
M is the matrix we begin with. The program computes M+tB with t=n/T (n=0,1,2,...,T) and plot at each step the eigenvalues of this matrix on the complex plane.
So, finally we can see how the eingenvalues of M move on the complex plane when we're adding B to M.
In order to do some random explorations, the function 'randevoeig(n,kA,kB,T)' define two random complex integer matrices A and B (with coefficients of size at most kA and kB respectivel), and writes them in files .csv; then, it runs perteig(A,B,T).
given a better description of randevoeig in the Description field
Added a screenshot and some script from 'Matrices program with a script for eigenvalues perturbations' (#30348)
added an ID in the acknowledged submissions
Corrected some grammatical misprints in the description.
Win cash prizes and have your live script featured on our websiteLearn more
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.