I have created the following 3-D matrix:
Lb = zeros(4,3,3);Lb(:,:,1) = [5 2 30 5 13 5 -22 2 -1];Lb(:,:,2) = [ 3 0 64 -3 25 6 4-4 2 2];Lb(:,:,3) = [ 4 -5 47 2 34 -5 53 3 0];
When I execute the SQUEEZE function on the third frame of the variable Lb.
squeeze(LB(3,:,:))
I receive the following result:
3 5 4 5 6 -5 -2 4 5
However, I expect the following:
3 5 -2 5 6 4 4 -5 5
since
Lb(3,:,:) = ans(:,:,1) = 3 5 -2 ans(:,:,2) = 5 6 4 ans(:,:,3) = 4 -5 5
Best Answer