MATLAB: How to convert uint32(4294967278) to -16

typecastuint32

hi
how to convert the Y = typecast(uint32(X), 'uint32') to real no.
for example I want to calculate the present velocity for dynamixel servo motor. it is suppose to be -16
but each time I calculate it, I got this no. (4294967278)velocity.png

Best Answer

>> typecast(uint32(4294967278),'int32')
ans = -18
Related Question