How to check if an array is empty without using any built in functions
古いコメントを表示
x = [];
x == [] , gives 0×0 empty logical array...
採用された回答
その他の回答 (1 件)
Sulaymon Eshkabilov
2021 年 9 月 4 日
x=[];
[R,C]=size(x)
if R==0 & C==0
disp('Empty')
else
disp('Contains STH')
end
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!