필터 지우기
필터 지우기

Picking out elements of an array and sorting them

조회 수: 1 (최근 30일)
Royvg94
Royvg94 2015년 12월 7일
편집: Royvg94 2015년 12월 8일
I have an array which size is 41 x 4 and it consists of 25 x 2 matrices. ( See picture)
I want Matlab to create a new array of 41 x 1 , starting with cell {1,1} of the array, and take the element (1,2). Then I want it to continue making the new array columnwise, and the next element should be cell {1,2} of the array and again element (1,2)
An example may explain it better.
This is the new array I want.
  • {1,1} (1,2)
  • {1,2} (1,2)
  • {1,3} (1,2)
  • {1,4} (1,2)
  • {1,1} (2,2)
  • {1,2} (2,2)
  • {1,3} (2,2)
  • {1,4} (2,2)..........
And then do this for all rows in the array.
Thanks in advance for the help!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by