Hi Mathematica Community!
I have a question related to non linear data fitting and I really need some guide on this. I am trying to fit my data to a non linear model fit function. However, it says "NonlinearModelFit::fitd: First argument {{{0,1},{1,0},{3,2}},{{0,2},{1,3},{3,4}}} in NonlinearModelFit is not a list or a rectangular array". I think the non linear model fit function could not recognize sub lists and it can only handle a 3 rows x 2 columns matrix instead of two 3 rows x 2 columns matrices.
Thanks for spending your time and i really appreciate your help. I have also attached a copy of my codes.
In[1]:= data = {{{0, 1}, {1, 0}, {3, 2}}, {{0, 2}, {1, 3}, {3, 4}}};
In [2]:= Dimensions[data]
Out[2]:= {2, 3, 2}
In[3]:= nlm = NonlinearModelFit[data, Log[a + bx^2], {a, b}, x]
NonlinearModelFit::fitd: First argument {{{0,1},{1,0},{3,2}},{{0,2},{1,3},{3,4}}} in NonlinearModelFit is not a list or a rectangular array.
NonlinearModelFit::fitd: First argument {{{0,1},{1,0},{3,2}},{{0,2},{1,3},{3,4}}} in NonlinearModelFit is not a list or a rectangular array.
Out[3] := NonlinearModelFit[{{{0, 1}, {1, 0}, {3, 2}}, {{0, 2}, {1, 3}, {3, 4}}}, Log[a + bx^2], {a, b}, x]
Attachments: