How to Split a Text File into Many Text Files ?
Afficher commentaires plus anciens
I have a text file which contains many Paragraphs.
Each Paragraph starts with a "greater than" ( > ) symbol.
I would like to split each paragraph into new text file using MATLAB.
Is it possible ?
Réponse acceptée
Plus de réponses (1)
Sheldon Ho
le 12 Juin 2019
0 votes
The line: fprintf('%s\n', CStr{Index(iP):Index(iP + 1) - 1});
should be: fprintf(FID,'%s\n', CStr{1,Index(iP):Index(iP + 1) - 1});
Catégories
En savoir plus sur Template Matching dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!