splitting matrix to different row
이전 댓글 표시
I have the following matrix and I want to split it.
A=[0 2 4 ,5 0 4]
it should be like this:
[0 2]
[2 4]
[4 2]
[5 0]
[0 4]
[4 5]
Please write me, If you have answer. Thanks
댓글 수: 4
Azzi Abdelmalek
2016년 5월 26일
편집: Azzi Abdelmalek
2016년 5월 26일
A=[0 2 4 ,5 0 4] is a row vector. And you didn't explain how to get the result
Joseph Cheng
2016년 5월 26일
also looking at the little pattern you have should [4 2] be [4 0] as it looks like the [4 5] as a wrap around pairing
the cyclist
2016년 5월 26일
I was sent the following via email. I think it is a clearer statement of the request:
# Elements
1 0 2
0 3 2
4 1 6
6 1 2
3 5 7
3 7 2
6 2 7
8 4 6
I would like to have this:
1 0
0 2
2 1
0 3
3 2
2 0
4 1
1 6
6 4
6 1
1 2
2 6
3 5
5 7
7 3
3 7
7 2
2 3
6 2
2 7
7 6
8 4
4 6
6 8
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!