MATLAB: How to convert a number in to hexa decimal in Simulink without using functions

binarydata conversionhexa decimalMATLABsimulink

Hi everyone,
I am trying to convert a number in to hexa decimal in Simulink without using any functions. Is there any way that this can be done with existing Simulink block? or else can anyone suggest me what would be the best way to do it in Simulink?
Thanks in Advance

Best Answer

Hi,
You may use "MATLAB function block" in your SIMULINK model to convert a number into hexadecimal format using “dec2hex" function.
Refer the sample SIMULINK model attached.