Mercurial > hg > octave-lyh
changeset 8413:b8de157b4948
ChangeLog entry and style fixes for last two patches
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 18 Dec 2008 21:06:20 +0100 |
parents | 970b4dbff9e4 |
children | 36c8a3696ae7 |
files | scripts/ChangeLog scripts/set/unique.m |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,9 @@ +2008-12-18 Daniel J Sebald <daniel.sebald@ieee.org> + + * time/datevec.m (__date_vfmt2sfmt__): New helper function. + (datevec): Avoid repeated parsing of the format string. + * set/unique.m: Only check for options if nargin > 1. + 2008-12-15 Jaroslav Hajek <highegg@gmail.com> * optimization/lsqnonneg.m: Preprocess using QR for over-determined
--- 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)