help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strcat docs


From: Ben Abbott
Subject: Re: strcat docs
Date: Mon, 04 Nov 2013 18:12:30 -0500

On Oct 31, 2013, at 10:19 AM, Stan Moore wrote:

> Is the documentation for strcat wrong?
> 
> According to the docs:
> s = [ "ab"; "cde" ];
>          strcat (s, s, s)
>              =>
>                  "ab ab ab "
>                  "cdecdecde"
> 
> but I don't see the spaces after "ab" IOW I see "ababab" vs "ab ab ab "
> 
> specifically:
> octave:150> s = [ "ab"; "cde"];
> octave:151> strcat(s,s,s)
> ans =
> 
> ababab   
> cdecdecde
> 
> The actual results make sense but the docs seem wrong. I didn't file a bug
> report because I wanted to probe the universe to see if I'm missing
> something before I submit a bogus bug with a release in the works.

Octave's behavior is consistent with Matlab's.  You are correct that the docs 
are wrong.

Please file a bug report.

        https://savannah.gnu.org/bugs/?group=octave

Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]