bugGNU Octave - Bugs: bug #46248, csvread, dlmread, csvwrite,...

 
 

bug #46248: csvread, dlmread, csvwrite, dlmwrite should specify that only num values are usable

Submitter:  Francesco Potortì <pot>
Submitted:  Mon 19 Oct 2015 12:03:04 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  philipnienhuis
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 26 Feb 2016 07:49:18 PM UTC, comment #5: 

I updated the documentation on the default branch (http://hg.savannah.gnu.org/hgweb/octave/rev/1bb9a34011d1).  There have been so many changes that it is now quite difficult to apply things to stable.  Closing report.

Rik <rik5>
Group administrator
Sat 12 Dec 2015 03:49:02 PM UTC, comment #4: 

Hmmm, my patch got out-of-date due to Rikś changes in the 2015 Code Sprint.

New cs attached.

(file #35709)

Philip Nienhuis <philipnienhuis>
Group Member
Sat 12 Dec 2015 03:22:10 PM UTC, comment #3: 

Here's a cs against the dev version


(file #35706)

Philip Nienhuis <philipnienhuis>
Group Member
Mon 19 Oct 2015 03:35:11 PM UTC, comment #2: 

The documentation for csvread and csvwrite are in the m-files io/csvread.m and io/csvwrite.m.  dlmwrite is in the file io/dlmwrite.m.  However, dlmread is is the C++ file libinterp/corefcn/dlmread.cc.

It should be pretty easy to prepare a changeset that just touches the help text.  I can review if you submit it to this bug report.

Rik <rik5>
Group administrator
Mon 19 Oct 2015 03:28:10 PM UTC, comment #1: 

Good idea, Matlab also states this explicitly.

IMO it would be nice if csv2cell() and cell2csv() from the io package were moved to core Octave. These functions can process mixed cell arrays.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 19 Oct 2015 12:03:04 PM UTC, original submission:  

While this is inferable from the fact that data are contained in a matrix, it would be certainly helpful if the docs of csvread, dlmread, csvwrite, dlmwrite specified in their first line that they can only manage numeric data.

Also, the docs for csvread and dlmread should suggest the use of textread and textscan as alternatives, especially when string data are involved.

The sentence "Octave can also read and write matrices text files such as comma separated lists." looks wrong: probably "such" should be removed.

At the start of this section an overview of the available functions should be written, with suggestions on which to use in what cases.

Francesco Potortì <pot>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by pot (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-26 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2015-12-12 philipnienhuis Attached File- Added delimIO_clarification2.cs, #35709
    2015-12-12 philipnienhuis Attached File- Added delimIO_clarification.cs, #35706
        StatusNone Patch Submitted
        Assigned toNone philipnienhuis
        Operating SystemGNU/Linux Any
    2015-10-19 rik5 Item GroupFeature Request Documentation

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code