I have a code :
%%%%%%%%%%%%%%%%%%%%%%%%
for i = 1 : 3
for j = 1 : 5 P{i,j} = rand(1,2); endend
P{1,:}(2)
% I want to use this to access a certain vector from this 3D matrix P
% But matlab told me "Bad cell reference operation". Can anyone tell me
% the reason and how to do it? Thanks a lot!
Best Answer