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

8 ビュー (過去 30 日間)
Davide Cerra
Davide Cerra 2018 年 11 月 10 日
回答済み: Bruno Luong 2018 年 11 月 10 日
code: from a=[1 2 3 4] to b=[1 1 2 2 3 3 4 4]

採用された回答

Bruno Luong
Bruno Luong 2018 年 11 月 10 日
b = repelem(a,2)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by