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
.
.
.
.

回答(1 个)

darova
darova 2020-4-25
See this solution

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by