find empty fields of structure of pixels of an image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
hi i have a structure that some field have again structure .how can i finde empty fields.i tried
any( structfun(@isempty, clustered_im) )
that resulted this error
Error using structfun
Inputs to STRUCTFUN must be scalar structures.
and i used
[r,c,v]=find(clustered_im==0)
that resulted en error
Undefined function 'eq' for input arguments of type 'struct'
so what do you suggest me to do
1 comentario
Respuestas (1)
Walter Roberson
el 18 de Feb. de 2018
arrayfun(@(S) any(structfun(@isempty,S)), clustered_im)
0 comentarios
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!