I have an array (720*1 cell) where in each cell, I have a set of variables x and y. I am estimating the best fit curve for each set. However, my loop stops and gives me the error: "Error using fit>iFit (line 348). NaN computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients."
How to identify all the cells with this error and remove them from the array? This is the code that I use:
for k = 1 : length(Array_january)
Thank you in advance!