Filter löschen
Filter löschen

how to get the transpose of hexadecimal array from text file ..any code related this

1 Ansicht (letzte 30 Tage)
how to get the transpose of hexadecimal array from text file ..any code related this..below data in txt file. 431B65D9C3176957 C022C9A543135153 C2EE4BF7429E6DBD 42AF3DBC3F9DD2E8
I want to it in[431B65D9C3176957 C022C9A543135153 C2EE4BF7429E6DBD 42AF3DBC3F9DD2E8] this way..

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 28 Mai 2015
f = fopen('your_text_file.txt');
c = textscan(f,'%s','delimiter','\n');
fclose(f);
out = c{:}
  2 Kommentare
Andrei Bobrov
Andrei Bobrov am 28 Mai 2015
"...sepatre this file by 8 bit..."
f = fopen('your_text_file.txt');
c = textscan(f,'%s','delimiter','\n');
fclose(f);
c2 = cat(1,c{:}{:});
out = mat2cell(c2,ones(4,1),8*[1,1])

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

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