MATLAB: Sym2cell not working even for the example given in document.

symbolic

syms x y S = [x 2 3 4; y 6 7 8; 9 10 11 12]
S =
[ x, 2, 3, 4] [ y, 6, 7, 8] [ 9, 10, 11, 12]
c=sym2cell(S) Undefined function 'sym2cell' for input arguments of type 'sym'.

Best Answer

According to the note at the bottom of the documentation page this function was introduced in release R2016a. I suspect you're using an earlier release of Symbolic Math Toolbox.
Related Question