Mercurial > hg > octave-lojdl
changeset 11924:bacb84129896 release-3-0-x
style fixes
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 16 Jan 2009 08:13:15 +0100 |
parents | 304855b33b67 |
children | e09ae0f2c767 |
files | scripts/ChangeLog scripts/set/unique.m |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-12-18 Daniel J Sebald <daniel.sebald@ieee.org> + + * set/unique.m: Only check for options if nargin > 1. + 2008-07-10 Jaroslav Hajek <highegg@gmail.com> * set/unique.m: Implement 'first' and 'last', some simplifications.
--- a/scripts/set/unique.m +++ b/scripts/set/unique.m @@ -49,7 +49,7 @@ ## parse options if (iscellstr (varargin)) - varargin = unique(varargin); + varargin = unique (varargin); optfirst = strmatch ('first', varargin) > 0; optlast = strmatch ('last', varargin) > 0; optrows = strmatch ('rows', varargin) > 0 && size (x, 2) > 1; @@ -108,7 +108,7 @@ if (nargout >= 3) j = i; - j(i) = cumsum ([1 !match]); + j(i) = cumsum ([1, !match]); endif if (optfirst)