You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Editor's Note: This file was selected as MATLAB Central Pick of the Week
clr performs: clear all; close all; clc;
This clears your workspace, closes all figures, and clears command window.
clr is a quick way to "reset" Matlab.
The only point of this function is to save key strokes. If you use Matlab often and you value your time, then this function may appeal to you.
Cite As
Brenden Epps (2026). clr == clear all; close all; clc; (https://se.mathworks.com/matlabcentral/fileexchange/37058-clr-clear-all-close-all-clc), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: cch - close, clear, home, nuke
General Information
- Version 1.1.0.0 (986 Bytes)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
