How to read strings and numbers in a text file?
Mostra commenti meno recenti
Hi there,
I got an attached type text file which needs to read the content, set them into variables and rewrite the text file again.
E.g. read 'A' in the text file as a variable and change its value into '2' and rewrite the text file. Same procedure should conduct to B,C,Trail01 and Trial02.
Can anyone help me to solve the problem using this example file?
2 Commenti
jonas
il 15 Nov 2018
You should probably use regexprep, but I don't understand what you are trying to do. Can you upload a "solution" that you've formatted manually?
Ravindu Lokuliyana
il 16 Nov 2018
Modificato: Ravindu Lokuliyana
il 16 Nov 2018
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!