Select particular 3D volumes of a 4D matrix

조회 수: 2 (최근 30일)
DM
DM 2021년 10월 7일
답변: Kevin Holly 2021년 10월 7일
Hi,
I have a 4D matrix with dimensions [384, 308, 26, 31]. The 4D matrix is an image [x,y,z,t]. I would like to keep the x,y and z dimension like it is but I would like to keep the data on t-dimension between 1-11 and 14-29.
I wrote the following but it excludes only the last two instead of 4 datasets.
matrix_4D = matrix_4D(:,:,:,1:11:14:29);
Any help would be greatly appreciated.

답변 (1개)

Kevin Holly
Kevin Holly 2021년 10월 7일
matrix_4D = matrix_4D(:,:,:,[1:11 14:29]);

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by