Create valid variable name
Version 1.1.0.0 (1.32 KB) by
Ivar Eskerud Smith
Crate a valid variable name from a string or cell of strings.
Crate a valid variable name from a string or cell of strings. All characters except letters, numbers and _ are removed. Also, numbers and _ are removed from the start of the name.
Cite As
Ivar Eskerud Smith (2024). Create valid variable name (https://www.mathworks.com/matlabcentral/fileexchange/35414-create-valid-variable-name), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2011a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Characters and Strings in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.