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 view (last 30 days)
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
.
.
.
.

Answers (1)

darova
darova on 25 Apr 2020
See this solution

Categories

Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!