Skip to content

Instantly share code, notes, and snippets.

@swis
Created November 13, 2012 19:33

Revisions

  1. swis created this gist Nov 13, 2012.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    [X,Y]=meshgrid(-1:.1:3);
    Z = rosenbrock(X,Y);

    figure;
    [C,h] = contour(X,Y,Z);
    xlabel('x');
    ylabel('y');
    clabel(C,h);