Is there a way to see how many bits compose an arbitrary variable X in MATLAB?

Viewed 68

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?

1 Answers
Related