MATLAB: Euclidean distance between two cell.

euclidean distance between cell

Hello,
i have two cell.
Z1={1×3}{1z3} Z2={1×3}{1×3}{1×3}
i need euclidean distance between Z1 a Z2.
can anyone help ?
Thanks.

Best Answer

Thomas, use
pdist([reshape(cell2mat(Z1),2,3); reshape(cell2mat(Z2),3,3)])
assumming that Z1 contains two cells of 1-by-3's, and Z2 contains three cells of 1-by-3's.