Skip to content

Instantly share code, notes, and snippets.

@pminkov
Created Jul 30, 2012
Embed
What would you like to do?
Plot f(x1, x2)
n = 50
m = 0
x1 = linspace(0 - m, 1 + m, n);
x2 = linspace(0 - m, 1 + m, n);
a = zeros(n, n);
for i1 = 1:n
for i2 = 1:n
a(i1, i2) = sigmoid(-30 + 20 * x1(i1) + 20 * x2(i2));
end
end
surf(a);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment