octave-bug-tracker
[Top][All Lists]
Advanced

[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: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #53095] strsplit fails to split a string with a delimiter of '\n' (null character)
Date: Mon, 12 Feb 2018 16:04:50 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36

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

                                      < M A T L A B (R) >
                            Copyright 1984-2017 The MathWorks, Inc.
                             R2017b (9.3.0.713579) 64-bit (glnxa64)
                                       September 14, 2017

 
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
 
>> str = [97, 0, 0, 98, 0, 0, 99];
>> str = char (str);
>> del = '\0';
>> [C, M] = strsplit (str, del);
>> double (M{1})

ans =

     0     0

>> 


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53095>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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