newname(oldname)

One-liner function to rename an object

Vous suivez désormais cette soumission

Rename a variable & delete the old name. Essentially this is a shorter-keystroke version of "a=b;clear(b)" .
Be warned that this function messes with the calling environment, a programming practice frowned upon by many.

Citation pour cette source

Carl Witthoft (2026). newname(oldname) (https://fr.mathworks.com/matlabcentral/fileexchange/52332-newname-oldname), MATLAB Central File Exchange. Extrait(e) le .

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.0.0.0