Raising a matrix to the power from 0 to 50

조회 수: 2 (최근 30일)
Anthony Cheung
Anthony Cheung 2020년 2월 25일
답변: madhan ravi 2020년 2월 25일
I have a matrix A how can i get the result A^2,A^3,A^3... A^50 by one command?
  댓글 수: 1
Rik
Rik 2020년 2월 25일
Why would you need a single command? This thread has two possible solutions for you. What doesn't work with those?

댓글을 달려면 로그인하십시오.

답변 (1개)

madhan ravi
madhan ravi 2020년 2월 25일
Wanted = arrayfun(@(x)A^x,0:50,'un',0);
celldisp(Wanted)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by