# MATLAB: Cell Array referencing question

cell arrays

Hello,
Suppose I have
A = {1 2}A =       [1]    [2]
and
B = {[1 2]}B =       [1x2 double]
I am wondering, why are these different. Matlab Says A is a 1×1 cell, and B is a 1×2 cell. I am confused about what matlab is doing when it sees this and why it is being classified as such.

A = {[1],[2]};
B = {[1 2]}