nuke

Script to nuke/reset your Matlab workspace
336 Downloads
Updated 17 Aug 2015

nuke - A dangerous command that obliterates the workspace and figures
NUKE clears the command window, deletes all currently open figures,
clears all instances of Matlab classes, stops and removes all timers,
and clears the workspace. This script is very useful when modifying
class definition files etc. where a simple "clear all" will not
suffice.

USAGE:
nuke

See also:
CLC, CLEAR, CLOSE

Copyright (c) 2014, Jonathan Suever
All rights reserved.

Cite As

Jonathan Suever (2024). nuke (https://github.com/suever/nuke), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Workspace Variables and MAT-Files in Help Center and MATLAB Answers
Acknowledgements

Inspired by: clr == clear all; close all; clc;

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.1.0.0

Adds CLR as an acknowledgement since it does a similar thing. This script, however, does a lot more error checking to prevent issues.

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.