Filter löschen
Filter löschen

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 Ansicht (letzte 30 Tage)
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
.
.
.
.

Antworten (1)

darova
darova am 25 Apr. 2020
See this solution

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by