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 Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by