How to DEconcatenate a string in matlab?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
John Rebbner
il 13 Gen 2019
Commentato: Stephen23
il 18 Gen 2019
Hello!
How to deconcatenate a string in matlab? I read some data (Names) from excel, and sort them in a matrix. Then the I use the stored data and concatenate them with an existing string, after that I write the new string in excel, but the data (Names) are concatenated and my code put everithing in one cell.
How to say to Matlab not to concatenate my string???
2 Commenti
Walter Roberson
il 13 Gen 2019
Use cell arrays of character vectors when you xlswrite() instead of char arrays.
Risposta accettata
John Rebbner
il 13 Gen 2019
5 Commenti
Walter Roberson
il 18 Gen 2019
no fprintf cannot write cell arrays. you would use cell expansion . For example
fprintf(fid, '%s\n', Cell_array_of_labels{:});
Stephen23
il 18 Gen 2019
"Does fprint fun can write a cell array in a file????"
No, but you can use a comma-separated list to provide multiple input arguments:
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Spreadsheets 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!