I just found the statement `any('')` returns a **logical 0**, while the statement `all('')` returns a **logical 1**.

If the function `any` does not think the empty string ('') as nonzero, the function `all` should do the same, but from the result, the function `all` seems to think the empty string ('') as nonzero.

BTW, the similar thing happens where `any(NaN)` returns logical 0 while `all(NaN)` returns logical 1.

Is it a MATLAB bug?

Here is the version information of the MATLAB I am using.  

MATLAB Version: 9.1.0.441655 (R2016b)  

MATLAB License Number: DEMO