clr == clear all; close all; clc;
Updated 11 Jun 2012
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.
Brenden Epps (2023). clr == clear all; close all; clc; (https://www.mathworks.com/matlabcentral/fileexchange/37058-clr-clear-all-close-all-clc), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: cch - close, clear, home, nuke
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.