Create valid variable name

Crate a valid variable name from a string or cell of strings.

You are now following this Submission

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 (2026). Create valid variable name (https://www.mathworks.com/matlabcentral/fileexchange/35414-create-valid-variable-name), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Now works for cellstrings also

1.0.0.0