I have a txt file with 3 columns of data:
x y1 y2
How do I import the file then create 2 functions, one interpolated with {x,y1} values and the other interpolated with {x,y2} values?
This is the sort of thing I want to achieve (in pseudocode):
Import "data.txt" into A
f1 = Interpolation(A,{x,y1})
f2 = Interpolation(A,{x,y2})
Import
documentation? This and its subpage on basic formats (search for "Table") would be a good starter.Interpolation
also has a very readable doc page. To get the table you obtain after importing into separate columns, you need Transpose. Please, try to reach a minimum proficiency level of the language by reading the documentation before asking questions. $\endgroup$Part
$\endgroup$