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!

10 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..

  4. on 08 Dec 2010 at 8:41 pm Jon

    Thanks, this was really helpful!

  5. on 12 Nov 2011 at 6:37 am Nasser Ahmed

    Many thanks…

    I was stuck in this tiny thing for two days, and I jut got it.

    Many many many thanks….

  6. on 22 Dec 2011 at 2:49 pm Ahmed

    Thanks, this was really helpful!
    Brief and to the point.

  7. on 02 Feb 2012 at 4:46 pm Matteo Taiana

    Thanks!
    Pretty useful.

  8. on 31 May 2012 at 7:19 am Fointard

    Incredibly useful !

  9. on 28 Nov 2012 at 6:26 am Sophie

    Short, precise, helpful. Thanks!

  10. on 22 Mar 2013 at 12:50 pm Fabrizio

    Thanks a lot. After many failed searches you gave the result quickly and to the point.

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

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