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.

 Akzeptierte Antwort

The Matlab Spot
The Matlab Spot am 12 Nov. 2013

0 Stimmen

say,
c = 2;
b = 1:10;
>>v = c.^b

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Coder finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by