I want do define a scalar function from a set of discrete values:
f=[10, 30, 5, 6,-10,11,12]
over the domain x=[100,300,-8,40,300,200,100] respectively
which has no expression. Next I want to calculate the gradient of the function using
How can I define the function to calculate the Gradient using discrete values?