Matrix Fill with same number sequence
Show older comments
How can I fill a matrix with the same sequence of numbers?
I want a matrix in which the first row contains 20 and 30. this should then also be in the next five rows.
Accepted Answer
More Answers (1)
Atsushi Ueno
on 20 Apr 2021
repelem(20:30,6,1)
Categories
Find more on Develop Apps Using App Designer 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!