Replacing characters in a string
37 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Ameer Hamza
2020 年 4 月 9 日
Why for loop? Why not some built-in function. This seems like a homework question. Can you show us the code you already tried?
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!