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

14 次查看(过去 30 天)
How can i check if an array cell just contain zero elements ? is there any defined matlab function ?

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2012-9-12
编辑:Azzi Abdelmalek 2012-9-12
B=cell2mat(A)
all(B(:)==0)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by