I imported the 3rd sheet in a xlsx file, which contains 3 columns of data, using
import["e:/temp/15c.xlsx"][[3]]
The data looks like {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}. I wanted to do curve fitting for just one column of data, such as {1, 4, 7} or {2, 5, 8}. I tried
Fit[%[[1, All, All]], {1, x, x^2}, {x}]
but it didn’t work. Would anyone please suggest how to get any 1D data out of the 3D table imported? Thank you.
1 Answer