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
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 LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
