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

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

 Accepted Answer

f = fopen('your_text_file.txt');
c = textscan(f,'%s','delimiter','\n');
fclose(f);
out = c{:}

2 Comments

"...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])

Sign in to comment.

More Answers (0)

Categories

Asked:

on 28 May 2015

Commented:

on 28 May 2015

Community Treasure Hunt

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

Start Hunting!