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

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Special Functions 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by