Could any one tell me about the indexing of a cell Array? I've tried to google it but I could only find unsatisfied result (may be I'm not good in googling). For matrix indexing I found a good document which can be found here. For my case let take a simple example.
a = {ones(10)}
and I want to access the first element of a
. Something like
a(1,1) % this will give a 10 x 10 matrix but i am not looking for it.
I can do it by changing it into a matrix like
a = cell2mat(a);
a(1,1)
ans = 1
but is there any direct way to access first element of cell array sub matrix.