Skip to content

Instantly share code, notes, and snippets.

@swis
Created November 13, 2012 19:33
Show Gist options
  • Save swis/4067856 to your computer and use it in GitHub Desktop.
Save swis/4067856 to your computer and use it in GitHub Desktop.
[X,Y]=meshgrid(-1:.1:3);
Z = rosenbrock(X,Y);
figure;
[C,h] = contour(X,Y,Z);
xlabel('x');
ylabel('y');
clabel(C,h);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment