ccc

版本 1.1.0.0 (1.1 KB) 作者: Chad Greene
close all; clear all; clc;
682.0 次下载
更新时间 2013/7/10

查看许可证

编者注: This file was selected as MATLAB Central Pick of the Week

This script contains only the following three lines of code:

close all;
clear all;
clc;

It closes all figures, clears the workspace variables, clears all functions from memory, and clears the command window. The intent is to have a very quick method of getting a somewhat clean slate.

It may seem hardly worth writing a script for, and may seem too trivial to upload to FEX, but in the three months since I wrote this script I've thought at least a hundred times, "why didn't I write this earlier?" Hopefully it helps you just the same, or inspires you to write other simple functions that are tailored to your needs.

Note that if you have any functions in your memory, using this command may create headaches as you'll have to reload them.

引用格式

Chad Greene (2024). ccc (https://www.mathworks.com/matlabcentral/fileexchange/42559-ccc), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Whos 的更多信息
致谢

启发作品: cch - close, clear, home, clearempty

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Included a warning about using this function.

1.0.0.0