Mercurial > hg > octave-terminal
changeset 9828:b96e9239178e
fix textread bug
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 18 Nov 2009 12:55:02 +0100 |
parents | c15a5ed0da58 |
children | 8fd88cc36fa4 |
files | scripts/ChangeLog scripts/io/textread.m |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-11-18 Jaroslav Hajek <highegg@gmail.com> + + * io/textread.m: strncmp->strcmpi. + 2009-11-14 Jaroslav Hajek <highegg@gmail.com> * linear-algebra/expm.m: Fix typo.
--- a/scripts/io/textread.m +++ b/scripts/io/textread.m @@ -50,7 +50,7 @@ endif ## Maybe skip header lines - headerlines = find (strncmp (varargin, "headerlines"), 1); + headerlines = find (strcmpi (varargin, "headerlines"), 1); if (! isempty (headerlines)) fskipl (fid, headerlines); varargin(headerlines:headerlines+1) = [];