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.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
2 Comments
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/516664-replacing-characters-in-a-string#comment_824575
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/516664-replacing-characters-in-a-string#comment_824575
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/516664-replacing-characters-in-a-string#comment_824593
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/516664-replacing-characters-in-a-string#comment_824593
Sign in to comment.