Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Figure out which parts of a batch calculation with structfun produces a warning?

조회 수: 1 (최근 30일)
Peta
Peta 2016년 4월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
If I use a command that performs calculations on several cells or arrays or fields of a structure at the same time and some of those calculations results in matlab producing a warning, is there any way that I can find out from which of the calculations the errors originates from?
Example: Say I use structfun to estimate several regression models in one call like this:
models = structfun(@(x) fitlm(x,Ytrain,'linear'), Xtrain, 'UniformOutput', false);
And some of those estimations produce a rank deficiency warning. How can I figure out afterwards which fields in the structure produced the warnings so I can treat them differently?

답변 (0개)

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by