New line for each character before space.
1 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!