Feed on
Posts
Comments

cast a cell as a string


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)


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

3 Responses to “cast a cell as a string”

  1. on 26 Sep 2006 at 4:36 am Anonymous

    Awesome, just what I needed to know! Thank you - thank you - thank you

  2. on 07 Aug 2007 at 9:17 am Cathal

    cheers! really helped, had a matrix of logical answers … you know the rest.

  3. on 25 Jun 2008 at 7:46 am remo

    Thanks.. i needed it too… prefect..

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.