How to generate a restricted matrix

1 回表示 (過去 30 日間)
Michael
Michael 2013 年 11 月 12 日
コメント済み: Michael 2013 年 11 月 12 日
I need to generate a matrix
v=[x;x^2;x^3;...;x^n]
Where n is any positive integer. If the n is very large, say 100, is there anyway to type it easily? Thank you.

採用された回答

The Matlab Spot
The Matlab Spot 2013 年 11 月 12 日
say,
c = 2;
b = 1:10;
>>v = c.^b
  1 件のコメント
Michael
Michael 2013 年 11 月 12 日
Ooops.. thx

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by