Challenge

Week 4 - Genetic Algorithm

function f = stalagmite(input_vector);

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

[xx, yy]=meshgrid(x,y);
for i=1:length(xx)
for j=1:length(yy)
f1=(sin(5.1*pi.*i + 0.5)).^6;
f2=(sin(5.1*pi.*j + 0.5)).^6;
f3=exp(-4*log(2)*((i-0.0667).^2/0.64));
f4=exp(-4*log(2)*((j-0.0667).^2/0.64));
F1=f1.*f2;
F2=f3.*f4;
f = F1.*F2;
end
end
end

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.