clr == clear all; close all; clc;

Version 1.1.0.0 (986 Bytes) by Brenden Epps
clr clears your workspace and command window, so you can start fresh.
1.3K Downloads
Updated 11 Jun 2012

View License

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 (2024). 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
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Workspace Variables and MAT-Files in Help Center and MATLAB Answers
Acknowledgements

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!
Version Published Release Notes
1.1.0.0

updated Description

1.0.0.0