私は構造体を持っています: many(i).fincomp、これらのそれぞれは (200x1) です。各 'i' のヒストグラム カウントを作成したい: histc(many(i).fincomp,1:12) <-これは機能します
>>histmany = structfun(@(x)histc(x.fincomp,1:12),many, 'UniformOutput', false);
Error using structfun
Inputs to STRUCTFUN must be scalar structures.
私は何を間違っていますか?
私もarrayfunで試しました
注: 一部のデータは NaN で、残りは数値です
ありがとう