2D matrix plane from a 3D matrix.

조회 수: 5 (최근 30일)
Anshuman S
Anshuman S 2018년 6월 14일
답변: KSSV 2018년 6월 14일
I want to get a plane from a 3D matrix as a 2D matrix. i have tried using these commands but it doesn't works.
P = A ( 10, :, : ) . I want the plane y-z of A matrix and save it as a 2D 'P' Matrix.

답변 (1개)

KSSV
KSSV 2018년 6월 14일
P = squeeze(A ( 10, :, : )) ;
Read about squeeze

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by