Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

2 visualizaciones (últimos 30 días)
Peta
Peta el 23 de Abr. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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?

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by