replaceTildes

Recurses through directories, finding Matlab code and replacing LHS tildes with 'ans'.

You are now following this Submission

Recurses through directories, finding Matlab code and replacing LHS tildes with 'ans' to make code backwards compatible.

WARNING: this overwrites files!!! Copy the whole folder before use!!!

Please report bugs on the Matlab FX.
And if you can come up with a better regex let me know.

Cite As

Daniel (2026). replaceTildes (https://www.mathworks.com/matlabcentral/fileexchange/42403-replacetildes), 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

Added warning dialogue at top of function. And explicitly declared DUMMY_VAR_NAME for user to change at his/her discretion.

1.0.0.0