MATLAB: Is it possible to pass and use hexadecimal values in simulink, without converting decimal

hexadecimalMATLABsimulink

I am trying to use hexadecimal values in a model, without converting to decimal. Does simulink have hexadecimal supported blocks?

Best Answer

No. Hexadecimal is encoded as characters, and character is not a supported Simulink signal type.
You are permitted to pass around vectors of uint8 such as uint8('3e') = uint8([51 101]) and then char() the vector within a MATLAB Function Block or Level 2 S Function that wants the char version.