suppose I have a irregular cell x
:
x={{11,23},11.2,{22,1,222.3}}
I want a function celltostr where celltostr(x)
returns a string '{{11,23},11.2,{22,1,222.3}}'
or something like '11 23\n11.2\n22 1 222.3\n'
. I try char([x{:}])
and it throws error. What should I do?