How do i manipulate matrix in form given below??
2 次查看(过去 30 天)
显示 更早的评论
1 2; 3 4; 5 6; 7 8;
as
1 2 3 4; 5 6 7 8;
1 个评论
采纳的回答
Azzi Abdelmalek
2013-10-18
编辑:Azzi Abdelmalek
2013-10-18
A=[1 2; 3 4; 5 6; 7 8]
BB=reshape(A',4,[])'
3 个评论
Azzi Abdelmalek
2013-10-18
编辑:Azzi Abdelmalek
2013-10-18
Please copy and paste the code
A=[1 2; 3 4; 5 6; 7 8]
BB=reshape(A',4,[])'
The result
>>BB =
1 2 3 4
5 6 7 8
%or maybe you want this
A=[1 2; 3 4; 5 6; 7 8]
BB=reshape(A',[],2)'
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!