|
- % Define environment (functions, gradients etc...)
- GivenEnv
-
- %
- % We plot the function in the domain of x,y in [-3, 3].
- % We also plot the contour in order to get a sense of the min and maximum
- % points in the x-y plane
- %
-
- % 3d plot the function
- plot3dFun(fun, [-3, 3], [-3, 3], 100, title_fun, "figures/FunctionPlot.png");
-
- % Plot isobaric lines
- plotContour(fun, [-3, 3], [-3, 3], 100, title_fun, "figures/FunctionContour.png");
|