string of binary to letters??
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
amira hl
am 9 Jun. 2015
Kommentiert: amira hl
am 9 Jun. 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 Kommentare
Image Analyst
am 9 Jun. 2015
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
Akzeptierte Antwort
Azzi Abdelmalek
am 9 Jun. 2015
Bearbeitet: Azzi Abdelmalek
am 9 Jun. 2015
bin=[0 0 1 0 1 0;1 0 0 1 0 1]
a=cellstr(num2str(bin)),
bina=strrep(a,' ','')
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Colormaps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!