Stalagmite function
Objective: clcclear allclose all %defining the searchx=linspace(-2,2,150);y=linspace(-2,2,150); %creating a 2D stalagmite functions[xx, yy] = meshgrid(x,y); %Evaluating the stalagmite function for i=1:length(xx) for j=1:length(yy) input_vector(1)=xx(i,j); input_vector(2)=yy(i,j); pi=3.14;f1x=(sind((5.1*pi*input_vector(1)) + 0.5)).^6;f1y=(sind((5.1*pi*input_vector(2))…