Skip to content

Instantly share code, notes, and snippets.

@pminkov
Created July 30, 2012 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pminkov/3205016 to your computer and use it in GitHub Desktop.
Save pminkov/3205016 to your computer and use it in GitHub Desktop.
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