I am fitting data (each column ) to linear function in a loop
I would like to save output result (gof) to a matrix , each loop different column without overwritin.
Can anyone help?
x = B(:,2)
for i=3: length(B)
y = B(:,i)
[fitresult, gof] = createFit(x, y)