bugGNU Octave - Bugs: bug #31826, dlmread syntax change or...

 
 

bug #31826: dlmread syntax change or nonfunctional

Submitter:  Rik <rik5>
Submitted:  Wed 08 Dec 2010 04:54:11 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.3.53 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 08 Dec 2010 04:58:52 PM UTC, comment #1: 

This has been fixed in the development code (hg tip )

Results for your command

data=dlmread("data1.txt",0,2,0)
warning: implicit conversion from scalar to sq_string
data =

  -0.028000
  -0.022000
  -0.016000


When called correctly specifying no separator, "", it works as in 3.2.4.


data=dlmread("data1.txt","",2,0)
data =

  -0.028000   0.000000
  -0.022000   0.000000
  -0.016000   0.000000


Rik <rik5>
Group administrator
Wed 08 Dec 2010 04:54:11 PM UTC, original submission:  

dlmread does not work as per the help. Works correctly in 3.2.4, does not in
3.3.54. In 3.3.54, it seems to assume that it is complex numbers where it is
actually a column of data


Data looks like this:
1000.000
-0.016        0.000
-0.028        0.000
-0.022        0.000
-0.016        0.000
-0.016        0.000
-0.003        0.000
-0.016        0.000
-0.016        0.000
...

data=dlmread("data1.txt",0,2,0);

data
data =

  -0.02800 +  0.00000i
  -0.02200 +  0.00000i
  -0.01600 +  0.00000i
  -0.01600 +  0.00000i
...

In 3.2.4 the same command looks like this:
data
data =

  -0.02800    0.00000
  -0.02200    0.00000
  -0.01600    0.00000
  -0.01600    0.00000
  -0.00300    0.00000
  -0.01600    0.00000


Rik <rik5>
Group administrator

 

(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 rik5 (Submitted the item)
  • -email is unavailable- added by rik5
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-12-08 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2010-12-08 rik5 Carbon-Copy- Added keithg

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code