newname(oldname)
Version 1.0.0.0 (585 Bytes) by
Carl Witthoft
One-liner function to rename an object
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.
Cite As
Carl Witthoft (2026). newname(oldname) (https://au.mathworks.com/matlabcentral/fileexchange/52332-newname-oldname), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Continuous Distributions > Birnbaum-Saunders Distribution >
Find more on Birnbaum-Saunders Distribution in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
