Script to nuke/reset your Matlab workspace
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). nuke (https://github.com/suever/nuke), GitHub. Retrieved .
Acknowledgements
Inspired by: clr == clear all; close all; clc;
General Information
- Version 1.1.0.0 (1.5 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 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 |
