Determine whether input is sparse
TF = issparse(S)
TF = issparse(S) returns logical 1 (true) if the storage class of S is sparse and logical 0 (false) otherwise.
true
S
false
full | is* | sparse
full
is*
sparse