I imported a list of data using
k = SemanticImport["Desktop/k_CARBON_eV.txt"]
And then I wanted to interpolate the data using:
kinter = Interpolation[k];
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityI imported a list of data using
k = SemanticImport["Desktop/k_CARBON_eV.txt"]
And then I wanted to interpolate the data using:
kinter = Interpolation[k];
k
is a dataset, which has head Dataset
. Interpolation
wants a list, typically a list of data pairs. To covert k
to such, use Normal
.
k = Dataset[{{5.88, .39}, {5.83, .41}, {5.73, .48}, {5.75, .58}}];
kinter = Interpolation[k // Normal];
Plot[kinter[x], Join[{x}, kinter["Domain"][[1]]]]
ListInterpolation
$\endgroup$ – zhk Jun 26 '17 at 0:55Dataset
to an array, maybeValues /@ Normal@k
. But you should really post code people can use to check solutions. $\endgroup$ – Michael E2 Jun 26 '17 at 1:05"Table"
or"Data"
couple of times, have you tried? $\endgroup$ – Kuba♦ Jun 26 '17 at 6:19