Hi, I am trying to import data from an excel file and fit my model to it. I defined the data as a list:
data = Import["ExampleData/data.xls"] // List;
but I’m still getting the error:
FindFit::fitd: “First argument {{{{0.,69.},{0.1,439.},{0.2,1182.},{0.3,1616.},{0.4,1961.},<<41>>,{4.6,2294.},{4.7,2327.},{4.8,2393.},{4.9,2321.},<<1150>>}}} in FindFit is not a list or a rectangular array”
Those are the first bits of my data. I don’t know what it could be looking for? I’m attaching my file and data in case it helps. I also tried defining it as a Table and I got the same error, but according to the “constructing lists” page they seem to be somewhat equivalent (both lists??) …
Secondary issue, I had to delete every other column and page from my excel file to get it to stop importing the other columns. I was using
s = Import["ExampleData/data.xls"] // List;
data = s[[3],All,{1,3}]
To get page 3, all rows, columns 1 and 3. It showed up like I wanted if i just called “data”, but when I tried to call data within my functions it was throwing up errors referring to other columns I was trying not to include.
Any help would be super awesome!