How can i check if an array cell contain only zero element ?

14 views (last 30 days)
How can i check if an array cell just contain zero elements ? is there any defined matlab function ?

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 12 Sep 2012
Edited: Azzi Abdelmalek on 12 Sep 2012
B=cell2mat(A)
all(B(:)==0)

Categories

Find more on Programming 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!