ccc

close all; clear all; clc;

Vous suivez désormais cette soumission

Note de l’éditeur : 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.

Citation pour cette source

Chad Greene (2026). ccc (https://fr.mathworks.com/matlabcentral/fileexchange/42559-ccc), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

A inspiré : cch - close, clear, home, clearempty

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.1.0.0

Included a warning about using this function.

1.0.0.0