isempty - check if a variable is an empty matrix or an empty list
isempty(x) returns true if x is an empty matrix or an empty list.
a=1 isempty(a(2:$)) isempty(find(rand(1:10)==5))
Back