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..
Thanks, this was really helpful!
Many thanks…
I was stuck in this tiny thing for two days, and I jut got it.
Many many many thanks….
Thanks, this was really helpful!
Brief and to the point.
Thanks!
Pretty useful.
Incredibly useful !
Short, precise, helpful. Thanks!
Thanks a lot. After many failed searches you gave the result quickly and to the point.