필터 지우기
필터 지우기

string of binary to letters??

조회 수: 3 (최근 30일)
amira hl
amira hl 2015년 6월 9일
댓글: amira hl 2015년 6월 9일
Hi
This is my code:
bin
for i=1:size(bin,1)
for j=1:size(bin,2)
mot=num2str(bin(i,j));
bina(i,j)=mot;
end
end
bina
____________________________________________________________________________________________________________________
bin =
1 1 1 0 1 0 0
1 1 0 1 0 0 0
bina =
1110100
1101000
I want to convert this 'bina' or the 'bin' into the initial letters, which are "th". How can i do that?
Thank you
  댓글 수: 2
Image Analyst
Image Analyst 2015년 6월 9일
amira hl
amira hl 2015년 6월 9일
ok i will thank you

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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 9일
편집: Azzi Abdelmalek 2015년 6월 9일
bin=[0 0 1 0 1 0;1 0 0 1 0 1]
a=cellstr(num2str(bin)),
bina=strrep(a,' ','')

추가 답변 (1개)

James Tursa
James Tursa 2015년 6월 9일
char(bin2dec(char(bin+'0')))'

카테고리

Help CenterFile Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by