Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
this function masks the builtin "clear" and carefully checks to make sure that "all" (or the default zero-argument case, which MathWorks foolishly made equivalent to "all") is not in the argument list. It accepts any mixture of string and cell arrays of string arguments.
Further, this function checks whether it was called from the console. If not , i.e. was called from within a function, it reverts to the builtin "clear" function so that function environments can be cleared as would normally happen.
With thanks to Cris Luengo and Andrew Janke over at StackOverflow.
Citation pour cette source
Carl Witthoft (2026). Replacement for CLEAR to avoid destructive behavior (https://fr.mathworks.com/matlabcentral/fileexchange/71405-replacement-for-clear-to-avoid-destructive-behavior), MATLAB Central File Exchange. Extrait(e) le .
Informations générales
- Version 1.0.0.1 (1,65 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.0.1 | cleaned up comments |
||
| 1.0.0 |
