Clear WorkSpace, Command Window and History simultaneously

Clear all simultaneously.
5.3K Downloads
Updated 4 Feb 2004

View License

This m-script can be used to clear the workspace, command window and command history simultaneously from the command input.

Cite As

Shanrong Zhang (2026). Clear WorkSpace, Command Window and History simultaneously (https://www.mathworks.com/matlabcentral/fileexchange/4431-clear-workspace-command-window-and-history-simultaneously), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Loops and Conditional Statements in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0