New line for each character before space.
Afficher commentaires plus anciens
I have a cell array which I converted to strcat and exported it into .txt file. Now the problem is that I want each value to go into a new line where as my values keep on coming in the same line after 3 spaces . Following is the code I am using
ECG_BIN_CELL = bin(fi(sigECG,1,32,31));
temp = strcat(cellstr(ECG_BIN_CELL));
fid = fopen('ECG_BIN.txt', 'wt');
fprintf(fid, '%s/n', temp{:});
fclose(fid);
Réponses (1)
Walter Roberson
le 25 Avr 2020
fprintf(fid, '%s\n', temp{:}); %\n not /n
1 commentaire
Abdul Ghani Zahid
le 25 Avr 2020
Catégories
En savoir plus sur Data Type Conversion 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!