フィルターのクリア

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 Center および File ExchangeImport, Export, and Conversion についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by