Effacer les filtres
Effacer les filtres

How to generate a restricted matrix

1 vue (au cours des 30 derniers jours)
Michael
Michael le 12 Nov 2013
Commenté : Michael le 12 Nov 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.

Réponse acceptée

The Matlab Spot
The Matlab Spot le 12 Nov 2013
say,
c = 2;
b = 1:10;
>>v = c.^b
  1 commentaire
Michael
Michael le 12 Nov 2013
Ooops.. thx

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by