MATLAB: Get Data from Cell Arrays

arraycellcell arraysdimensionsmatrix

Hey Guys,
This is only an example for the problem i have. A very Simple one, so i hope i get a fast answer.
Code:
a = 1:10;
b = 1:2:20;
c = a.*b;
D = {a;b;c}
D = [1x10 double]
[1x10 double]
[1x10 double]
Now if i want to get the 3rd Value of the 1st row ( a = 3) i type
D{1,3}
and it says
??? Index exceeds matrix dimensions.
I need it to be a Cell-Array, cause my actual code contains Numbers and String. How can i get the single Values/String form this Array ?

Best Answer

D contains 3 cells, each cell contains an array
D{1}(3)
% {1} to get the first cell,
% (3) to get the third element of the array contained in the first cell