How to check if an array is empty without using any built in functions
显示 更早的评论
采纳的回答
更多回答(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!