Borrar filtros
Borrar filtros

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

14 visualizaciones (últimos 30 días)
Mariem Harmassi
Mariem Harmassi el 12 de Sept. de 2012
How can i check if an array cell just contain zero elements ? is there any defined matlab function ?

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 12 de Sept. de 2012
Editada: Azzi Abdelmalek el 12 de Sept. de 2012
B=cell2mat(A)
all(B(:)==0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by