Effacer les filtres
Effacer les filtres

string of binary to letters??

3 vues (au cours des 30 derniers jours)
amira hl
amira hl le 9 Juin 2015
Commenté : amira hl le 9 Juin 2015
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 commentaires
Image Analyst
Image Analyst le 9 Juin 2015
amira hl
amira hl le 9 Juin 2015
ok i will thank you

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 9 Juin 2015
Modifié(e) : Azzi Abdelmalek le 9 Juin 2015
bin=[0 0 1 0 1 0;1 0 0 1 0 1]
a=cellstr(num2str(bin)),
bina=strrep(a,' ','')

Plus de réponses (1)

James Tursa
James Tursa le 9 Juin 2015
char(bin2dec(char(bin+'0')))'

Catégories

En savoir plus sur Import, Export, and Conversion dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by