How can i check if an array cell contain only zero element ?
Show older comments
How can i check if an array cell just contain zero elements ? is there any defined matlab function ?
1 Comment
Azzi Abdelmalek
on 12 Sep 2012
Edited: Azzi Abdelmalek
on 12 Sep 2012
the size of your cell aray?
Answers (1)
Azzi Abdelmalek
on 12 Sep 2012
Edited: Azzi Abdelmalek
on 12 Sep 2012
B=cell2mat(A)
all(B(:)==0)
Categories
Find more on Data Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!