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에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!