Create valid variable name

Crate a valid variable name from a string or cell of strings.
219 Downloads
Updated 29 May 2012

View License

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 Linux
Categories
Find more on Characters and Strings in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Now works for cellstrings also

1.0.0.0