matrix reshaping
显示 更早的评论
Does someone know how to reshape an array for example: A=[1 5; 2 4; 5 6] to an array B=(1,6) to be like this: B=[1 5 2 4 5 6];
Thank you...
采纳的回答
更多回答(2 个)
Honglei Chen
2011-11-17
You can try
B = A.';
B = B(:).';
类别
在 帮助中心 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!