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!