Show older comments
Hello, could anyone point out how to check a empty set?
I try isempty, seems wrong
a = [1 3 2]
a =
1 3 2
K>> b = [1 3 2]
b =
1 3 2
K>> d = setdiff(a, b)
d =
Empty matrix: 1-by-0
K>> isempty(d)
ans =
Empty matrix: 1-by-0
5 Comments
Matt Tearle
on 6 Mar 2011
what version of MATLAB are you using? that works fine for me.
REN
on 6 Mar 2011
REN
on 6 Mar 2011
REN
on 6 Mar 2011
Matt Tearle
on 6 Mar 2011
OK, never mind then
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Identification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!