Storing eigenvalues from a loop

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 :)

 採用された回答

Hiro Yoshino
Hiro Yoshino 2020 年 3 月 30 日

0 投票

Can I have your code?

その他の回答 (1 件)

j21
j21 2020 年 3 月 30 日

0 投票

Hi,
I have in the meantime managed to write the loop that will store the eigenvalues. Now what I have to do is extract the real and imaginary part of each of those (so to get damping and frequency) and plot frequency vs U graph and damping vs U graphs.
Code link:
blob:https://octave-online.net/a4b14750-c038-4650-b289-ab131b3a5b2b

カテゴリ

ヘルプ センター および File ExchangeLinear Algebra についてさらに検索

質問済み:

j21
2020 年 3 月 30 日

回答済み:

j21
2020 年 3 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by