[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strcat behavior
From: |
Ben Abbott |
Subject: |
Re: strcat behavior |
Date: |
Mon, 09 Sep 2013 21:08:39 -0400 |
On Sep 9, 2013, at 8:59 PM, Rik wrote:
> 9/9/13
>
> Does anyone remember why we convert double to char in strcat before doing
> the concatenation? Is this undocumented Matlab behavior?
>
> As an example,
>
> strcat ([97.123], "bc")
> => "abc"
>
> It seems preferable to me to warn when non-string objects are using for
> string concatenation.
>
> --Rik
That is how Matlab behaves
strcat ([97.123], 'bc')
ans =
abc
Ben