write from cell aray to txt file
Mostra commenti meno recenti
I have a cell array like this:

I want to write it line by line into a txt file (so I can chose which line to write whith an if), I also have to put a whitespace between every cell like this:

the number of whitespaces beetween each cell doesn' t make any difference, I can' t figure out how to write it (the cell array is pretty large so an optimized solution would be handy)
thank you for the support in advance
2 Commenti
Rik
il 8 Mag 2022
You have a cell array of char arrays, so the obvious way to write that is with a loop. Are you able to write text to a file?
Andrea Somma
il 8 Mag 2022
Modificato: Andrea Somma
il 8 Mag 2022
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Cell Arrays 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!