Code shorter than clear, clc

Version 1.0.0 (997 Bytes) by Hagop
Two line of code instead of writing clear , clc, to clear the working space in matlab
1 Download
Updated 31 Mar 2026

View License

most the people working with matlab
type clear and the clc
to simplify that process for those i wrote down this m file that contain 2 line of code to clear in one line
this file is not intended to be replacing clear command or clc command
best regards
hagop bulbulian

Cite As

Hagop (2026). Code shorter than clear, clc (https://ch.mathworks.com/matlabcentral/fileexchange/183543-code-shorter-than-clear-clc), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2025b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0