[Top][All Lists]

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

[Octave-bug-tracker] [bug #57612] textscan omits final column value for

From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #57612] textscan omits final column value for CSV is value is empty
Date: Thu, 16 Jan 2020 21:27:05 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36

Update of bug #57612 (project octave):

                  Status:                    None => Confirmed              
                 Release:                   4.2.2 => dev                    


Follow-up Comment #1:

Thank you for your bug report.  I created an easier equivalent code to
reproduce in Octave and Matlab:

newline = @() sprintf('\n');
str = ['102,19700101,,0.485,', newline(), '111,19700101,,0.48,']
C   = textscan (str, '%s%f%q%f%q', 'Delimiter', ',')

Your expected output is exactly that of Matlab R2019a where C{1}{1} and
C{1}{2} are "char-arrays".

In Octave 5.1.0, 5.1.90, and dev the output looks gibberish as in comment #0. 
Thus changing to dev.


Reply to this item at:


  Message sent via Savannah

reply via email to

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