how to make a matrix
显示 更早的评论
hallo,
i have a vector V = (a1, a2, ....., a5000) and i want to make a matix (2*2*5000) with the values [(a1 a1
a1 a1); ....... ;(a5000 a5000 a5000 a5000)]?
thanks
回答(1 个)
Walter Roberson
2020-10-14
repmat(reshape(V, 1, 1, []), 2, 2, 1)
类别
在 帮助中心 和 File Exchange 中查找有关 Assembly 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!