isempty
显示 更早的评论
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 个评论
Matt Tearle
2011-3-6
what version of MATLAB are you using? that works fine for me.
REN
2011-3-6
REN
2011-3-6
REN
2011-3-6
Matt Tearle
2011-3-6
OK, never mind then
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Type Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!