Requirements for Signed Integer Representation
You must compile the code that is generated by the MATLAB® Coder™ software on a target that uses a two’s complement representation for signed integer values. The generated code does not verify that the target uses a two’s complement representation for signed integer values.