2D matrix plane from a 3D matrix.

2 次查看(过去 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