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

2 Ansichten (letzte 30 Tage)
Davide Cerra
Davide Cerra am 10 Nov. 2018
Beantwortet: Bruno Luong am 10 Nov. 2018
code: from a=[1 2 3 4] to b=[1 1 2 2 3 3 4 4]

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Special Functions finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by