clearnot
Versión 1.0.0.0 (1,43 KB) por
Andrew Bliss
CLEARNOT clears all variables except the input variables
CLEARNOT A B clears all the variables in the calling workspace except A and B (or any variable that is input to CLEARNOT).
Useful for cleaning up a cluttered workspace when you want to preserve a few variables.
The functional form of CLEARNOT is also valid: CLEARNOT('A','B').
TODO: make it work with wildcards.
Example:
a=2;b=3;c=4;d=5;
clearnot a c
This clears B and D but preserves A and C in the workspace.
Citar como
Andrew Bliss (2025). clearnot (https://es.mathworks.com/matlabcentral/fileexchange/39776-clearnot), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R14
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Workspace Variables and MAT Files en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0.0 |
