X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=optimization%2Ftest_functions%2Frosenbrock1.m;h=9aa69c63718ae0d0b72d24a65263673149f49596;hb=HEAD;hp=5e4df05ed8c7d6e776bd858c4ee91538b707bbf5;hpb=75563505172dce2cc78116f0884819ca32620dbe;p=octave.git diff --git a/optimization/test_functions/rosenbrock1.m b/optimization/test_functions/rosenbrock1.m index 5e4df05..9aa69c6 100644 --- a/optimization/test_functions/rosenbrock1.m +++ b/optimization/test_functions/rosenbrock1.m @@ -1,9 +1,9 @@ function f = rosenbrock1(x) - ## - ## A version of the Rosenbrock function which takes a column - ## 2-vector instead of two distinct arguments. See rosenbrock.m for - ## more information. - ## + % + % A version of the Rosenbrock function which takes a column + % 2-vector instead of two distinct arguments. See rosenbrock.m for + % more information. + % if (length(x) == 2) f = rosenbrock(x(1), x(2)); else