from a=[1 2 3 4] to b=[1 1 2 2 3 3 4 4]

8 views (last 30 days)
code: from a=[1 2 3 4] to b=[1 1 2 2 3 3 4 4]

Accepted Answer

Bruno Luong
Bruno Luong on 10 Nov 2018
b = repelem(a,2)

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!