How can i check if an array cell contain only zero element ?
显示 更早的评论
How can i check if an array cell just contain zero elements ? is there any defined matlab function ?
1 个评论
Azzi Abdelmalek
2012-9-12
编辑:Azzi Abdelmalek
2012-9-12
the size of your cell aray?
回答(1 个)
Azzi Abdelmalek
2012-9-12
编辑:Azzi Abdelmalek
2012-9-12
B=cell2mat(A)
all(B(:)==0)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Types 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!