MATLAB: Extract sub matrix of sub matrix directly

sub matrix of sub matrix

I have matrix a m-by-n-by-p.
b=a(:,:,1) is a sub matrix of a.
I want to extract sub matrix of b (say c) so that
c=b(1:4, 1:4)
Can I extract c from matrix a such as
c=[a(:,:,1)](1:4, 1:4) This means
c=b(1:4, 1:4)
With regards -Abhijit

Best Answer

Yes,
C = a(1:4,1:4,1);