bugGNU Octave - Bugs: bug #41229, MATLAB's "clear classes"...

 
 

bug #41229: MATLAB's "clear classes" == Octave's "clear all; clear classes"

Submitter:  Felipe G. Nievinski <fgnievinski>
Submitted:  Tue 14 Jan 2014 12:31:07 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 14 Jan 2014 09:59:21 PM UTC, comment #2: 
Rik <rik5>
Group administrator
Tue 14 Jan 2014 12:31:48 AM UTC, comment #1: 

in Octave:

>> avar = [];
>> clear classes
>> exist('avar', 'var')
ans =  1


in Matlab:

>> avar = [];
>> clear classes
>> exist('avar', 'var')
ans =  0



Felipe G. Nievinski <fgnievinski>
Tue 14 Jan 2014 12:31:07 AM UTC, original submission:  

as per <http://www.mathworks.com/help/matlab/ref/clear.html>:
"clear CLASSES is the same as clear ALL except that class definitions are also cleared"

in Octave:

>> avar = [];
>> clear classes
>> exist('avar', 'var')
ans =  1
+verbatim+

in Matlab:
+verbatim+
>> avar = [];
>> clear classes
>> exist('avar', 'var')
ans =  0
+verbatim+

Felipe G. Nievinski <fgnievinski>

 

(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 fgnievinski (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-14 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code