Q:

matlab: I want to convert a cellarray to an array?

Conversion?
array(1:3) = cellArray{1:3}; 
% this fails:  "Subscripted assignment dimension mismatch."

note:  I know how to do this in a loop.  Looking for matlab direct route.
%% Contents of cellArray %%
K>> cellArray{1:3}

ans =

11

ans =

f0

ans =

05

A:

Use cell2mat.

A = cell2mat(C) converts cell array C with contents of the same data type into a single array, A.

