Clear WorkSpace, Command Window and History simultaneously

Clear all simultaneously.

You are now following this Submission

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 .

Categories

Find more on Loops and Conditional Statements in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0