How to raise a matrix to multiple powers 0 to 100.

5 visualizaciones (últimos 30 días)
Hello, how might one set up where a matrix can be raised through multiple powers one by one? I am trying to do the number [0:100] and then raising the matrix to those powers like this matrix(3x3)^[0:100], but no matter what it will not accept my parameters. I can not find an answer anywhere.

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 4 de Dic. de 2019
Editada: KALYAN ACHARJYA el 4 de Dic. de 2019
mat=..?? % Define the given Matrix
mat_result=cell(1,100);
for i=1:100
mat_result{i}=mat.^i;
end
  3 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 4 de Dic. de 2019
Editada: KALYAN ACHARJYA el 4 de Dic. de 2019
Thanks @Stephan Cobeldick if not element wise, then
mat=..?? % Define the given Matrix
mat_result=cell(1,100);
for i=1:100
mat_result{i}=mat^i;
end
David Wiles-Austin
David Wiles-Austin el 9 de Dic. de 2019
And would there be a way to multiply this by a 3x1 Matrix to show a population? As I am trying to graph this out.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Networks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by