How to extract data from 6D data?

I have a variable named data which is 6-D double
Its size is 256 256 256 1 3 3.
I can easily extract 256*256*256 matrix but how do i extract last 3?

Answers (1)

yourMatrix(i,j,k,:,:,:)

1 Comment

and possibly also,
shiftdim( yourMatrix(i,j,k,:,:,:) ,3)
depending on the shape you wanted.

Sign in to comment.

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 7 Jan 2022

Commented:

on 7 Jan 2022

Community Treasure Hunt

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

Start Hunting!