I hava a string with different binary values. the binary values are seperated by spaces. I want to export this data to a txt file, but I want each binary value to be in a new line in the txt file.
1 次查看(过去 30 天)
显示 更早的评论
I hava a string with different binary values. the binary values are seperated by spaces. I want to export this data to a txt file, but I want each binary value to be in a new line in the txt file.
I am curtrently using the following code to get the string
ECG_BIN_CELL = bin(fi(sigECG,1,32,31));
temp = strcat(cellstr(ECG_BIN_CELL));
for exampl the string is as follows
'00000110000000110101010011111111 00000110001111100001100001110011 00000110010000000011001110100100 00000110000100110100101111011101 .........'
and I want the test file to have it as follows
00000110000000110101010011111111
00000110001111100001100001110011
00000110010000000011001110100100
00000110000100110100101111011101
.
.
.
.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!