필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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..

채택된 답변

Andrei Bobrov
Andrei Bobrov 2015년 5월 28일
f = fopen('your_text_file.txt');
c = textscan(f,'%s','delimiter','\n');
fclose(f);
out = c{:}
  댓글 수: 2
Andrei Bobrov
Andrei Bobrov 2015년 5월 28일
"...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])

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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