MATLAB: Storing eigenvalues from a loop

eigenvaluesloopspace-statestoring values

Hi everyone,
I have made a code that finds a space-state system matrix A and finds its eigenvalues for one specified parameter (call it U) that is predefined and its a part of matrix A.
Now I want to create a loop that will allow me to vary U (lets say from U=220 to U=250) and then calculate eigenvalues for each U. I am having a trouble writing the code that will store these eigenvalues after each iteration.
Any help is appreciated, Thank you 🙂

Best Answer

Can I have your code?
Related Question