Problem 2046. Convert binary numbers to hexadecimal numbers
Function must convert the input vector x composed of 0 and 1 (length is a multiple of 8) in hexadecimal. Most significant bit is first. each pair of hexadecimal symbols must be separated by space.
Example: [1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 1] will return 'F0 E1'
Solution Stats
Problem Comments
- 
		3 Comments
		Jean-Marie Sainthillier
    	on 21 Feb 2014
	
	
  	Test 4, length(x) isn't a multiple of 8.
		ChrisR
    	on 1 Apr 2022
	
	
  	The input is an array in Tests 1-3 and a character string in Test 4.
		Jung Un Park
    	on 4 Jul 2023
	
	
  	bad problem.
Solution Comments
Show commentsProblem Recent Solvers43
Suggested Problems
- 
         
         1962 Solvers 
- 
         Find state names that start with the letter N 1387 Solvers 
- 
         Convert a numerical matrix into a cell array of strings 2235 Solvers 
- 
         Back to basics 23 - Triangular matrix 1088 Solvers 
- 
         
         395 Solvers 
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!