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

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 9일
편집: Azzi Abdelmalek 2015년 6월 9일

0 개 추천

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일

0 개 추천

char(bin2dec(char(bin+'0')))'

카테고리

도움말 센터File Exchange에서 Test and Measurement에 대해 자세히 알아보기

태그

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

질문:

2015년 6월 9일

댓글:

2015년 6월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by