bugGNU Octave - Bugs: bug #57181, Support Matlab R2019a new data I/O...

 
 

bug #57181: Support Matlab R2019a new data I/O functions "readmatrix/readvars/readcell" and "writematrix/writecell".

Submitter:  Hartmut <hardy>
Submitted:  Wed 06 Nov 2019 07:39:17 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 07 Nov 2019 10:25:48 AM UTC, comment #2: 

I may be wrong, but I have the feeling that this is very close to Table I/O, for which I've opened a task in the task tracker that I'm slowly working on:
http://savannah.gnu.org/task/?15419

As to spreadsheet I/O in core, IMO that is a very delicate subject. It looks simple but has many concealed gotchas. We should discuss it first in the maintainers ML, but as far as I'm concerned such a discussion had better happen in December or even later as I have too many other distractions ATM.

Release -> dev

Philip Nienhuis <philipnienhuis>
Group Member
Thu 07 Nov 2019 02:05:09 AM UTC, comment #1: 

Nice observation. I did not study the release notes carefully enough those days.

Basically, there came five new and seemingly useful functions with a cleaner interface for specifying the file encoding and alike.

"readmatrix/readvars/readcell" and "writematrix/writecell"

The spreadsheet functionality of these functions is currently covered by the io package, but the basic data import functionality should preferably go into core Octave.  There might be a design decision necessary.  Personally, I don't mind bringing the io package closer to core Octave and let Philip work there =) As you said, great matrix processing, without proper import is incomplete.

Agree on your first point with extending the list by all five functions.

Agree on your second item as well.  This is not just a simple wrapper file with a new name.

Kai Torben Ohlhus <siko1056>
Group Member
Wed 06 Nov 2019 07:39:17 PM UTC, original submission:  

Starting with this year's Matlab Version R2019a the new function "readmatrix" was introduced by Mathworks. They now marked the good old "csvread" and "dlmread" with the following comments:


Not recommended starting in R2019a

csvread is not recommended. Use readmatrix instead. There are no plans to remove csvread.

(Same for dlmread.)

I think we should

  • add readmatrix to the list of "unimplemented" functions in Octave, soon.


  • Consider creating an Octave version of readmatrix in the future. Since importing csv data files is in my understanding a core functionality of Octave. (Before processing your data, you need to first import it.) And Matlab users will probably change over to this readmatrix function during the years to come.


But creating a "readmatrix" function seems to not only be a wrapper around any existing Octave function. They support quite many (useful?) options in ths new function readmatrix.

Hartmut <hardy>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by philipnienhuis
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by hardy (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-10 philipnienhuis Carbon-Copy- Added philipnienhuis
    2019-11-07 rik5 Severity3 - Normal 1 - Wish
    2019-11-07 philipnienhuis Release5.1.0 dev
    2019-11-07 siko1056 StatusNone Confirmed
        Summarymissing function &quot;readmatrix&quot; (new in Matlab R2019a) Support Matlab R2019a new data I/O functions "readmatrix/readvars/readcell" and "writematrix/writecell".

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code