decimal to hexadecimal matlab code | dec2hex function

This page of MATLAB source code covers decimal to hexadecimal conversion or dec2hex matlab function with code.

output=dec2hex(input) matlab function converts
decimal integer number to two dimentional hexadecimal string equivalent.

output=dec2hex(input,N) maylab function converts decimal number to hexadecimal string with N digit specified.

dec2hex matlab function

input=65536
output=dec2hex(input)
output = 
10000
input=65536
output=dec2hex(input,8)
output=
00010000

Useful Links to MATLAB codes

Refer following as well as links mentioned on left side panel for useful MATLAB codes.
OFDM Preamble generation  Time off estimation corr  Freq off estimation corr  channel estimation  11a WLAN channel  PN sequence generation  OFDMA Tx Rx  AES DES  carrier aggregation  CCDF  FIR Filter  IIR Filter  Low Pass FIR  Viterbi decoder  CRC8 CRC32 

RF and Wireless tutorials

WLAN  802.11ac  802.11ad  wimax  Zigbee  z-wave  GSM  LTE  UMTS  Bluetooth  UWB  IoT  satellite  Antenna  RADAR