MATLAB Answers

2D matrix plane from a 3D matrix.

10 views (last 30 days)
Anshuman S
Anshuman S on 14 Jun 2018
Answered: KSSV on 14 Jun 2018
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.

  0 Comments

Sign in to comment.

Answers (1)

KSSV
KSSV on 14 Jun 2018
P = squeeze(A ( 10, :, : )) ;
Read about squeeze

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!