cast a cell as a string
February 15th, 2006 by Lawrence David
if you receive the error “Function is not defined for ‘cell’ inputs” while trying to print a string, it’s because your string lives in a cell.
to make this go away, cast the cell contents into a char:
>>char(your_string_trapped_in_a_cell)
Awesome, just what I needed to know! Thank you - thank you - thank you
cheers! really helped, had a matrix of logical answers … you know the rest.
Thanks.. i needed it too… prefect..