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: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: Philip NienhuisOpen/Closed: Open
Release: devOperating 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jwe (Updated the item)
  • -unavailable- added by philipnienhuis (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 29 Aug 2017 09:09:25 PM UTCrik5StatusNone=>Confirmed
    Tue 29 Aug 2017 12:16:04 PM UTCjweSummaryClearing 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
    Fri 25 Aug 2017 01:57:18 PM UTCphilipnienhuisSummaryClearing 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.1-cleanup1