I have a bunch of data trialstuff
corresponding to {x,y,z}
, which I put here.
I am plotting a graph of it:
ListPlot3D[Flatten[trialstuff, 1], ColorFunction -> "TemperatureMap"]
which gives me this:
where I wrote by hand the "line" which looks like the minima.
1) Is there a way I can find the position in the xy plane of the minimum?
2) If I know the minimum of zero, can I "solve" the equation to find where in the xy plabe the ListPlot3D is zero?
--
EDIT after kglr answer
With this data and this code:
iF = Interpolation[Join @@ trialstuff];
pnt = Flatten[{{x, y} /. #[[2]], #[[1]]}] &@
NMinimize[{iF[x, y], 1 <= x <= Sqrt[30], 100 <= y <= 400}, {x, y}]
Show[Plot3D[iF[x, y], {x, 1.1, Sqrt[30] - 0.1}, {y, 101, 399},
BoundaryStyle -> None, Boxed -> False,
ColorFunction -> "DarkTerrain",
MeshFunctions -> {# &, #2 &,
ConditionalExpression[Derivative[1, 0][iF][#, #2],
Derivative[2, 0][iF][#, #2] > 0] &,
ConditionalExpression[Derivative[0, 1][iF][#, #2],
Derivative[0, 2][iF][#, #2] > 0] &},
Mesh -> {{3.1622776600251727`}, {228.06175994426033`}, {0}, {0}},
MeshStyle -> {Magenta, Green, Directive[Red, Thick],
Directive[Yellow, Thick]},
PlotLegends ->
LineLegend[{Magenta, Green, Directive[Red, Thick],
Directive[Yellow, Thick]}, {StringForm["{``, y, iF[``, y]}",
NumberForm[pnt[[1]], 4], NumberForm[pnt[[1]], 4]],
StringForm["{x, ``, iF[x, ``]}", NumberForm[pnt[[2]], 4],
NumberForm[pnt[[2]], 4]],
StringForm["{``, y, iF[``, y]}", Superscript[x, "*"][y],
Superscript[x, "*"][y]],
StringForm["{x, ``, iF[x, ``]}", Superscript[y, "*"][x],
Superscript[y, "*"][x]]}]],
Graphics3D[{Orange, AbsolutePointSize[10], Point[pnt]}]]
I get this picture:
What are the other random mesh lines?