conversion to one byte integer representation
conversion to 2 bytes integer representation
conversion to 4 bytes integer representation
conversion to one byte unsigned integer representation
conversion to 2 bytes unsigned integer representation
conversion to 4 bytes unsigned integer representation
y=int8(X)
y=int16(X)
y=int32(X)
y=uint8(X)
y=uint16(X)
y=uint32(X)
:X matrix of floats or integers : :y matrix of integers coded on one, two or four bytes. :
converts and stores data two one, two or four bytes integers. These data types are specialy useful to store big objects such as images, long signals,...
:y=int8(X) return numbers in the range [-128,127] : :y=uint8(X) return numbers in the range [0,255] : :y=int16(X) return numbers in the range [-32768,32767] : :y=uint16(X) return numbers in the range [0, 65535] : :y=int32(X) return numbers in the range [-2147483648,2147483647] : :y=uint32(X) return numbers in the range [0, 4294967295] :
`int8`_([1 -120 127 312])
`uint8`_([1 -120 127 312])
x=`int32`_(-200:100:400)
`int8`_(x)