Convert 3D matrix to 2D matrix.
조회 수: 1 (최근 30일)
이전 댓글 표시
If i have value of x,y,z plane in 3D matrix and i want to change the 3D to 2D array( of each x plain).
댓글 수: 0
채택된 답변
Massimo Zanetti
2016년 10월 19일
I try to guess from your question:
%random 3D array
A=rand(5,6,7);
%extract a 2D matrix from first dimension of A
x=1; % x can be from 1 to 5 in this example
B=A(x,:,:)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 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!