Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
CCH accepts arguments to be passed to the CLEAR command. If one of the arguments is '-BREAKS', breakpoints will not be cleared.
By default (modifiable), CCH by itself with no arguments is the same as CCH -BREAKS.
Over the years, I've used a micro-script version of this on the order of dozens or even hundreds of times in a typical day of using MATLAB. It's also the first line of many of my utility scripts and shortcuts.
There are two similar submissions on the file exchange, but both use "clc" instead of "home", which in my experience sometimes results in throwing away useful command window history information when you wish you hadn't. I'm therefore a proponent using "home" over "clc" — perhaps I can convert some users with this submission.
Citar como
Sky Sartorius (2026). cch - close, clear, home (https://la.mathworks.com/matlabcentral/fileexchange/43264-cch-close-clear-home), MATLAB Central File Exchange. Recuperado .
Agradecimientos
Inspirado por: clr == clear all; close all; clc;, Clear Most, ccc
Información general
- Versión 1.22.0.0 (1,83 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.22.0.0 | Simplified fclose. |
||
| 1.21.0.0 | 'all' argument no longer default for the sake of speed. |
||
| 1.2.0.0 | breakpoint preservation; passing args to clear command |
||
| 1.1.0.0 | breakpoint preservation; passing args to clear command |
||
| 1.0.0.0 |
