creating a 10 x 1 matrix that counts

19 views (last 30 days)
vedesh Mohit
vedesh Mohit on 7 Apr 2018
Answered: KSSV on 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?

Accepted Answer

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

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!