Mercurial > hg > octave-max
changeset 10082:28af9aa6f9ed
fix typos in __scatter__
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sun, 10 Jan 2010 22:00:38 +0100 |
parents | debb5b35a1a7 |
children | 614ad9e7a17b |
files | scripts/ChangeLog scripts/plot/private/__scatter__.m |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-01-11 Jaroslav Hajek <highegg@gmail.com> + + * plot/private/__scatter__.m: Fix typos. + 2010-01-11 Jaroslav Hajek <highegg@gmail.com> * io/fileread.m: New source.
--- a/scripts/plot/private/__scatter__.m +++ b/scripts/plot/private/__scatter__.m @@ -214,13 +214,13 @@ [xx, idx] = sortrows (x); n = rows (x); jdx = find (any (xx(1:n-1,:) != xx(2:n,:), 2)); - jdx(n) = n; + jdx(end+1) = n; y = xx(jdx,:); else [xx, idx] = sort (x); n = length (x); jdx = find (xx(1:n-1,:) != xx(2:n,:)); - jdx(n) = n; + jdx(end+1) = n; y = xx(jdx); endif