3D array to a column
조회 수: 3 (최근 30일)
이전 댓글 표시
Suppose we have an 3D-array r=ones(m,n,k). How to make a column of all the values of "r" in the following form? example,
for r=ones(2,2,2)
the desired table should look like:
A= [r(1,1,1),
r(2,1,1),
r(1,2,1),
r(2,2,1),
r(1,1,2),
r(2,1,2),
etc, ..] .
X-grid number changes first, then changes Y-grid number, and Z-grid number is "the weakest".
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!