Created
July 30, 2012 05:21
-
-
Save pminkov/3205016 to your computer and use it in GitHub Desktop.
Plot f(x1, x2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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