Replace repeated pattern in text
Mostra commenti meno recenti
I wrote the following code for a file that I attach, but it is not working.
filecontent = fileread('C:\Users\User\Desktop\Document 8.txt')
filecontent6 = regexprep( filecontent ,' 6; !- Minimum Number of Warmup Days' , ' 5; !- Minimum Number of Warmup Days' )
fid = fopen('C:\Users\User\Desktop\Document 5.idf', 'wt')
assert(fid > 0, 'failed to open file for writing');
fwrite(fid, filecontent6)
fclose(fid)
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su File Operations in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!