I need a command to check for zero sparse matrix, isempty(..) does not work. Is there some sparse version of isempty(..)?

```
>> mlf2=sparse([],[],[],2^31+1,1)
mlf2 =
All zero sparse: 2147483649-by-1
>> isempty(mlf2)
ans =
0 % I waited for 1 here with the zero sparse matrix...
```

`isempty(0)`

will also evaluate as`false`

as zero is not empty. Normally you can use`any`

or`nnz`

to determine whether there are nonzeros.`nnz`

,`nonzeros`

,`nzmax`

, etc. are all in the See Also section of the`sparse`

doc page. There are several useful companion functions. Worth a look IMO.