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!