bugGNU Octave - Bugs: bug #38699, Textread in io package buggy, does...

 
 

bug #38699: Textread in io package buggy, does not have all Matlab functionality

Submitter:  None
Submitted:  Wed 10 Apr 2013 01:31:40 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Duplicate Assigned to:  None
Originator Name:  Daniel Arteaga Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.2
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 10 Apr 2013 08:12:10 PM UTC, comment #2: 

FTR: textread is in core since 2 years and was removed from io package 2 years ago as well.

Philip Nienhuis <philipnienhuis>
Group Member
Wed 10 Apr 2013 06:06:50 PM UTC, comment #1: 

Yeah, known issue. See #33875, #36819, and several postings in the mailing lists.
It would have been better to first search the bug tracker for similar reports, would have saved you and me and other people a few mails.

There's a bug report about it from -well?- 1.5 or 2 years ago summing up all missing functionality, see bug #33875

Here's a strread.m (work horse for textscan.m/textread.m) that has preliminary [] format support:

https://savannah.gnu.org/patch/?7817

All bets are off as to whether it works with current textread.m/textscan.m. But you could be lucky.

Anyway this issue isn't going to be solved soon.
Nobody has the time and/or inclination to start building a binary textscan.
See the maintainers ML of (IIRC) Aug 2011 for a start of a binary textscan

Philip Nienhuis <philipnienhuis>
Group Member
Wed 10 Apr 2013 01:31:40 PM UTC, original submission:  

The following piece of code works in Matlab, but not in Octave.

[Trial Event_Type Code Time]=textread("test.log","%d%s%s%d%*[^n]","headerlines",5);

Apparently option %*[n] is not recognized.

Please test with attached sample log file.

Besides, textread has a small bug regarding the situation in which there is only one option "headerlines".

See related discussion thread at: http://octave.1599824.n4.nabble.com/Textread-from-io-package-td4651648.html

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #27831:  test.log added by None (3KiB - text/x-log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-10 philipnienhuis CategoryOctave Package Interpreter
    2013-04-10 philipnienhuis StatusNone Duplicate
        Open/ClosedOpen Closed
    2013-04-10 None Attached File- Added test.log, #27831

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code