Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我有一个尺寸为 1x55 的向量,我想逐行重塑并得到一个 11x5 矩阵。谁能帮我 ?
这是一个例子:
A=[1,2,3,4,5,6,7,8,9...55] after the reshaping B=[1,2,3,4,5 6,7,8,9,10 11,12,13... ... 55]
非常感谢
重塑和转置:
reshape(A, 5, 11)'
要得到您想要的答案,您需要重塑为 5x11 矩阵并进行转置:
B = reshape(A,5,11)';