bugGNU Octave - Bugs: bug #51849, Clearing cells in variable editor...

 
 

bug #51849: Clearing cells in variable editor sets cell contents to numeric zero, not empty

Submitted by:  Philip Nienhuis <philipnienhuis>
Submitted on:  Fri 25 Aug 2017 01:57:02 PM UTC  
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Philip Nienhuis Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 30 Aug 2017 03:17:46 PM UTC, comment #2:

AFAICS only for cell arrays; Octave's variable editor cannot handle structs yet.

In your example Matlab sets a numerical entry to zero, as expected more or less.
Doing:
y = num2cell (x)
and opening that, clearing any entry sets it to an empty cell.
Clearing a field of a struct does neatly remove that field.

Philip Nienhuis <philipnienhuis>
Project Member
Tue 29 Aug 2017 09:09:25 PM UTC, comment #1:

Confirmed. Is this only for cell arrays (and possibly structs)? What happens in Matlab if you clear an entry in a numeric array?

Rik <rik5>
Project Administrator
Fri 25 Aug 2017 01:57:02 PM UTC, original submission:

Matlab:
Clearing a cell in a cell array in variable browser (right-click on cell, "clear") sets the cell to empty

Octave (variable Editor):
Right-click on cell in Variable Editor, "clear": sets cell contents to numeric zero

Philip Nienhuis <philipnienhuis>
Project Member

 

(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 (Posted a comment)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by philipnienhuis (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-29 rik5 StatusNone => Confirmed
    2017-08-29 jwe SummaryClearing cells in vaiable editor set cell contents to numeric zero, not empty => Clearing cells in variable editor sets cell contents to numeric zero, not empty
    2017-08-25 philipnienhuis SummaryClearing cells in vaiable editor set cell contents to numric zero, not empty => Clearing cells in vaiable editor set cell contents to numeric zero, not empty

    Back to the top


    Powered by Savane 3.3