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

15 Ansichten (letzte 30 Tage)
Mariem Harmassi
Mariem Harmassi am 12 Sep. 2012
How can i check if an array cell just contain zero elements ? is there any defined matlab function ?

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 12 Sep. 2012
Bearbeitet: Azzi Abdelmalek am 12 Sep. 2012
B=cell2mat(A)
all(B(:)==0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by