How to generate a restricted matrix

1 次查看(过去 30 天)
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by