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

 
 

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

Submitted by:  None
Submitted on:  Wed 10 Apr 2013 01:31:40 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: DuplicateAssigned to: None
Originator Name: Daniel ArteagaOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.2
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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 File(s):
   
   
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
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 10 Apr 2013 08:12:10 PM UTCphilipnienhuisCategoryOctave Forge Package=>Interpreter
    Wed 10 Apr 2013 06:06:50 PM UTCphilipnienhuisStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Wed 10 Apr 2013 01:31:40 PM UTCNoneAttached File-=>Added test.log, #27831

    Back to the top


    Powered by Savane 3.1-cleanup1