Argument to dynamic structure reference must evaluate to a valid field name.
이전 댓글 표시
Error in IMFEATURE (line 172)
outstats=subsasgn(outstats, s, subsref(stats, s));
답변 (1개)
Voss
2022년 3월 20일
You can avoid this error by changing this line (line 164):
s(2).subs = {requestedStats{p}};
to this:
s(2).subs = requestedStats{p};
However, you can avoid using subsref/subsasgn (and constructing the necessary substruct) entirely by changing line 172 to:
outstats(k).(requestedStats{p}) = stats(k).(requestedStats{p});
카테고리
도움말 센터 및 File Exchange에서 Triangulations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!