editing large text file
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
In Notepad (or equivalent softwares) there is a feature that does search a character, edit it, and "Replace All".
How I can edit a text file by doing Replace All using Matlab?
Example: assume I have a text file that has 300 characters like "HjY". I want to replace all these characters with "HjY(i)" in an automated way.
2 Commenti
KSSV
il 6 Set 2018
It depends on how the file is.....you have to attach a file format so that we can help you.
Risposte (1)
ahmed nebli
il 6 Set 2018
this is how is suggest you can do : -import your file/-use a for loop to search for 'H' and after it a 'j' and after it a 'Y' / if found : replace them with what you want
Vedere anche
Categorie
Scopri di più su Environment and Settings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!