I have an arbitrary variable X, and I would like apply a function and get as the output the number of bits X takes up. I know that I can use 'whos', but I want a usable output of the number of bits of X.
Is there any (built-in) function that can do this in MATLAB?