creating a 10 x 1 matrix that counts

15 visualizzazioni (ultimi 30 giorni)
vedesh Mohit
vedesh Mohit il 7 Apr 2018
Risposto: KSSV il 7 Apr 2018
Hey i want to create a 10 x 1 matrix with the values 0 to well 9 in it. So basically it does a count. I want to get x=[0;1;2;3;4;5;6;7;8;9]; Any help?

Risposta accettata

KSSV
KSSV il 7 Apr 2018
iwant = 0:9 ;

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by