Borrar filtros
Borrar filtros

How to generate a restricted matrix

1 visualización (últimos 30 días)
Michael
Michael el 12 de Nov. de 2013
Comentada: Michael el 12 de Nov. de 2013
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.

Respuesta aceptada

The Matlab Spot
The Matlab Spot el 12 de Nov. de 2013
say,
c = 2;
b = 1:10;
>>v = c.^b

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by