bugGNU Octave - Bugs: bug #38514, Odd parsing of empty cell {}...

 
 

bug #38514: Odd parsing of empty cell {} within matrix [ ] definition

Submitter:  Rik <rik5>
Submitted:  Wed 13 Mar 2013 11:46:10 PM UTC
   
 
Category:  Interpreter Severity:  2 - Minor
Priority:  1 - Later Item Group:  Matlab Compatibility
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 14 Mar 2013 03:00:52 PM UTC, comment #2: 

If that is the way it needs to be done--so be it.  Ugly!

Rik <rik5>
Group administrator
Thu 14 Mar 2013 03:38:07 AM UTC, comment #1: 

Welcome to Matlab.

:-/

John W. Eaton <jwe>
Group administrator
Wed 13 Mar 2013 11:46:10 PM UTC, original submission:  

A null matrix, [], is filtered out when creating a new matrix.


[1, 2, [], 3, 4]

ans =

   1   2   3   4


However, a null cell, {}, causes the matrix to be re-defined as a cell.


[1, 2, {}, 3, 4]
ans =
{
  [1,1] =  1
  [1,2] =  2
  [1,3] =  3
  [1,4] =  4
}


This seems really odd.

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

Digest:
   bug dependencies.

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-24 rik5 StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2013-03-14 rik5 Dependencies- Depends on bugs #37086
    2013-03-14 rik5 Severity3 - Normal 2 - Minor
        Priority5 - Normal 1 - Later
        Item GroupNone Matlab Compatibility

    Back to the top

    Powered by Savane 3.13-9f0e.
    Corresponding source code