Explanation

The bitcmp function will change in a future release. This function will no longer accept an integer argument for N. Instead, you must specify a character vector containing the assumed integer type A.


Suggested Action

Replace the number of bits N with an appropriate character vector that indicates the integer type of A: 'int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', or 'uint64'.

You still can use the bitcmp function on integers of arbitrary bit length. For example, bitcmp(x,N) and bitand(bitcmp(x),2^N-1) yield the same result:

x = uint16(1000);
N = 10;
oldsyntax = bitcmp(x,N)
oldsyntax =

     23

newsyntax = bitand(bitcmp(x),2^N-1) newsyntax =

     23

For further information, see the bitcmp function reference page.