[Top][All Lists]

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

[Octave-bug-tracker] [bug #53095] strsplit fails to split a string with

From: Rik
Subject: [Octave-bug-tracker] [bug #53095] strsplit fails to split a string with a delimiter of '\n' (null character)
Date: Sun, 11 Feb 2018 23:24:50 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #4, bug #53095 (project octave):

I have a patch for the first part of this bug.  I'd like to know how Matlab
handles the second output (matches).  Could someone run the following

str = [97, 0, 0, 98, 0, 0, 99];
str = char (str);
del = '\0';
[C, M] = strsplit (str, del);
double (M{1})

In Octave this is returning an empty matrix ([]), but as I understand this it
should return [0 0].


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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