generating a sequence 1,2,3,4,....,n

 Réponse acceptée

R.U.F.
R.U.F. le 21 Avr 2012

1 vote

vector=[1:stepsize:n] if the stepsize =1 as in your case, you can disregard it

1 commentaire

Jan
Jan le 22 Avr 2012
Following the mlint suggestion, you can omit the square brackets: "1:n"

Connectez-vous pour commenter.

Plus de réponses (1)

Catégories

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by