2D matrix plane from a 3D matrix.

2 vues (au cours des 30 derniers jours)
Anshuman S
Anshuman S le 14 Juin 2018
Réponse apportée : KSSV le 14 Juin 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.

Réponses (1)

KSSV
KSSV le 14 Juin 2018
P = squeeze(A ( 10, :, : )) ;
Read about squeeze

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by