Replacing characters in a string
21 views (last 30 days)
Show older comments
Commented: Patrick Crosby on 9 Apr 2020
I want to replace characters in a string using loops and if statements. For example if there is a Y in the string, I want to change it to a J. If there is an M in the string I want to change it to a Q.
Birdman on 9 Apr 2020
Edited: Birdman on 9 Apr 2020
One example(use regexprep):
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!