Challenge

Week 4 - Genetic Algorithm

clear all
close all
clc

x=linspace(0,0.6,100);
y=linspace(0,0.6,100);

[xx,yy]= meshgrid(x,y);

for i=1:length(xx);
    for j=1:length(yy);
        in1=xx(i,j);
        in2=yy(i,j);
        f(i,j) = Stalagmite(in1,in2);
    end
end

surf(xx,yy,f)
shading interp



Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.