find empty fields of structure of pixels of an image

조회 수: 1 (최근 30일)
mandana
mandana 2018년 2월 18일
답변: Walter Roberson 2018년 2월 18일
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개)

Walter Roberson
Walter Roberson 2018년 2월 18일
arrayfun(@(S) any(structfun(@isempty,S)), clustered_im)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by