Ältere Kommentare anzeigen
hi, I converted decimal no. (10) into binary using x=dec2bin(10,15)=000000000001010
i want to isolate each 5 bits alone, then convert it again into decimal . I don't know how isolate each 5 bits alone.
thanks
Akzeptierte Antwort
Weitere Antworten (1)
Matt Tearle
am 21 Okt. 2011
Can you clarify your question? If you want to extract portions of x you can just index:
x(1:5)
x(6:10)
x(11:15)
You could even reshape into 5-character blocks: reshape(x,5,[])'
Kategorien
Mehr zu String finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!