generating a sequence 1,2,3,4,....,n
Show older comments
Without using a for loop, how can I generate an index 1,2,3,...,n?
Accepted Answer
More Answers (1)
Arsal noor
on 22 Oct 2020
1 vote
X = [1 2 3 4]
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!