Question: function [y] = camel6(xx) % INPUTS: % xx = [x1, x2] x1 = xx(1); x2 = xx(2); term1 = (4-2.1*x1^2+(x1^4)/3) * x1^2; term2 = x1*x2;
![function [y] = camel6(xx) % INPUTS: % xx = [x1, x2]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f33322d5c34_37066f33322859af.jpg)
function [y] = camel6(xx)
% INPUTS: % xx = [x1, x2]
x1 = xx(1); x2 = xx(2); term1 = (4-2.1*x1^2+(x1^4)/3) * x1^2; term2 = x1*x2; term3 = (-4+4*x2^2) * x2^2; y = term1 + term2 + term3; end
Input Domain: x1 [-3, 3], x2 [-2, 2].
the function matlab implementation is given to help you
for the function given above find the approximated minimum using random walk method
please the answer must be a matlab code, thanks
f(x) = (42.1 ]+) 3 2 4 z +2122+(-4+4x3x3 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
