Problem 43614. Convert binary numbers array into array of decimal numbers.
Convert binary numbers array into array of decimal numbers.
Example
x=[ 11001000 ; 11001001 ; 11001010 ; 11001011 ; 11001100 ; 11001101 ; 11001110 ; 11001111 ; 11010000 ; 11010001 ; 11010010 ; 11010011 ; 11010100 ; 11010101 ; 11010110 ; 11010111 ; 11011000 ; 11011001 ; 11011010 ; 11011011 ; 11011100 ; 11011101 ; 11011110 ; 11011111 ; 11100000 ; 11100001 ; 11100010 ; 11100011 ; 11100100 ; 11100101 ; 11100110]
res= [ 200 ; 201 ; 202 ; 203 ; 204 ; 205 ; 206 ; 207 ; 208 ; 209 ; 210 ; 211 ; 212 213 ; 214 ; 215 ; 216 ; 217 ; 218 ; 219 ; 220 ; 221 ; 222 ; 223 ; 224 ; 225 ; 226 ; 227 ; 228 ; 229 ; 230]
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers107
Suggested Problems
-
Return the largest number that is adjacent to a zero
5215 Solvers
-
Find the alphabetic word product
3260 Solvers
-
Magic is simple (for beginners)
8393 Solvers
-
Matlab Basics II - Create a vector with a repeated entry
228 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
1736 Solvers
More from this Author37
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!