How do i create a system of matrices from a single matrix?

1 Ansicht (letzte 30 Tage)
Richard Malic
Richard Malic am 3 Dez. 2021
Bearbeitet: Matt J am 3 Dez. 2021
I have a matrix A(n,n) where n is a random number btw. 5-10000. I am supposed to create a system of matrices H1, H2....Hk, for k=2,3...n with a rule that is Hk = H1 * H(k-1), while H1 = A.
Basically i have to create so many matrices until i have n of them. I am sorry if anything is insufficient, i am totaly new to Matlab and have no idea what to do about it. Do you have any ideas?

Akzeptierte Antwort

Matt J
Matt J am 3 Dez. 2021
Bearbeitet: Matt J am 3 Dez. 2021
H=cell(1,n);
H{1}=A;
for k=2:n
H{k}=A*H{k-1};
end

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by