X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=blobdiff_plain;f=partition.m;h=96ded5e194103e5a5ecaf92b0203ad74b97a87f7;hp=ac616cf5891d6f0e7c2f3d4322b8ab22b383e705;hb=ef3b3ec9dcffcb4751b7f2215efd918eab84d8a5;hpb=07247e6b4d7d4656c9db15583871cc6ae2651b2a diff --git a/partition.m b/partition.m index ac616cf..96ded5e 100644 --- a/partition.m +++ b/partition.m @@ -22,7 +22,7 @@ function [p,delta] = partition(integerN, a, b) ## We don't use abs() here because `b` might be less than `a`. In that ## case, we want delta negative so that when we add it to `a`, we move ## towards `b`. - delta = (b - a)/integerN + delta = (b - a)/integerN; - p = [a : delta : b] + p = [a : delta : b]; end