Replacing characters in a string
44 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
2 commentaires
Ameer Hamza
le 9 Avr 2020
Why for loop? Why not some built-in function. This seems like a homework question. Can you show us the code you already tried?
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!