Mercurial > hg > octave-lyh
changeset 14582:e97ec01d4157
Correct assignment to wrong variable f headerlines processing
* textscan.m: change varargin into args in L.166
* strread.m: correct copyright message
author | Alexander Graf <a.graf@fz-juelich.de> |
---|---|
date | Fri, 27 Apr 2012 17:22:07 +0200 |
parents | 7d11812c52aa |
children | 3a10d5bdada8 |
files | scripts/io/strread.m scripts/io/textscan.m |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/io/strread.m +++ b/scripts/io/strread.m @@ -1,5 +1,5 @@ ## Copyright (C) 2009-2012 Eric Chassande-Mottin, CNRS (France) -## Copyright (C) 2012 Philip Nienhuis +## Parts Copyright (C) 2012 Philip Nienhuis ## ## This file is part of Octave. ##
--- a/scripts/io/textscan.m +++ b/scripts/io/textscan.m @@ -163,7 +163,7 @@ headerlines = find (strcmpi (args, "headerlines"), 1); ## Beware of zero valued headerline, fskipl would skip to EOF if (! isempty (headerlines) && (args{headerlines + 1} > 0)) - fskipl (fid, varargin{headerlines + 1}); + fskipl (fid, args{headerlines + 1}); args(headerlines:headerlines+1) = []; st_pos = ftell (fid); endif