bugGNU Octave - Bugs: bug #40095, Clearvar function not implemented


bug #40095: Clearvar function not implemented

Submitted by:  None
Submitted on:  Tue Sep 24 14:02:42 2013  
Category: Octave FunctionSeverity: 1 - Wish
Priority: 3 - LowItem Group: Matlab Compatibility
Status: Patch SubmittedAssigned to: None
Originator Name: FedericoOriginator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Tue Nov 22 22:03:44 2016, comment #4:

The "clearvars" function is still missing in Octave 4.2.0.

This new function is submitted as a patch in comment #3.

Hartmut <hardy>
Fri Dec 18 10:37:55 2015, comment #3:

Federico, the .m file in the changeset relies on the other changes to the C++ code.

The attached .m file runs with the current codebase.

(file #35789)

Lachlan Andrew <lachlan>
Project Member
Thu Mar 20 15:19:50 2014, comment #2:

I tried with a pre-release version (octave-3.8.1-1) of Windows build found here:

and clearvars is still not present. Also, trying to use as .m file the patch kindly provided here is not working.

Why the fix has not been ported? Should we expect it in official Windows build?

Federico Gennari <fedemone>
Mon Sep 30 02:44:16 2013, comment #1:

I've attached a patch for this (I also decided to patch the who function, because it didn't match what matlab did).

David M. Turner <novalis>
Tue Sep 24 14:02:42 2013, original submission:

The function Clearvar existing in Matlab (and described here:
http://www.mathworks.it/it/help/matlab/ref/clearvars.html )is not implemented in Octave and not recognized, giving corectly an error message.

Such function is not present in Source Forge listing: http://octave.sourceforge.net/functions_by_alpha.php

Could it be implemented?



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #35789:  clearvars.m added by lachlan (4kB - text/x-objcsrc)
file #29264:  fix-40095 added by novalis (6kB - application/octet-stream - Patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by lachlan (Updated the item)
  • -unavailable- added by fedemone (Posted a comment)
  • -unavailable- added by jordigh (Updated the item)
  • -unavailable- added by novalis (Updated the item)
  • -unavailable- added by None (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Mar 31 05:30:03 2016mtmillerSeverity3 - Normal=>1 - Wish
      Priority5 - Normal=>3 - Low
      Operating SystemMicrosoft Windows=>Any
    Fri Dec 18 10:37:55 2015lachlanAttached File-=>Added clearvars.m, #35789
    Mon Sep 30 12:45:50 2013jordighStatusNone=>Patch Submitted
    Mon Sep 30 02:37:18 2013novalisAttached File-=>Added fix-40095, #29264

    Back to the top

    Powered by Savane 3.1-cleanup1