I am stuck here since so long. Please help me.
For the following code:
Original "I" dimensions are 217x181x181
[nX,nY,nZ] = size(I);
[X,Y,Z] = meshgrid(1:nX,1:nY,1:nZ);
after Meshgrid X, Y, Z are of dimensions 181x217x181
Now from "I" how to find values in C matrix such that the dimensions of X, Y, Z matches with that of C.