string of binary to letters??
조회 수: 3 (최근 30일)
이전 댓글 표시
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
2015년 6월 9일
I fixed your formatting this time, but please read this http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
채택된 답변
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,' ','')
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!