MATLAB: Do I receive “Cell contents reference from a non-cell array object.” error

comma-separated list {:} cell array

Why do I receive "Cell contents reference from a non-cell array object." error when I execute this code?
handles.num=1;
handles.den=2;
handles.num{:}
Cell contents reference from a non-cell array object.

Best Answer

Try round brackets instead handles.num(:). These ones {} are used for cells.