I have the following:
cellMat = cell(3,1);
cellMat{1} = rand(3);
cellMat{2} = rand(3);
cellMat{3} = rand(3);
and I want to loop through them and get the (1,1) element of each rand matrix. I tried...
cellMat{:}(1,1);
but I get "Bad cell reference operation". But the following...
cellMat{1}(1,1);
will return the correct value.
Is there a nice way I can get this to work? I'd really like to avoid using a for loop.
Thanks!