|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #45047] textread.m: n lines used as repeat count in strread |
Date: | Thu, 07 May 2015 16:09:39 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0 |
URL: <http://savannah.gnu.org/bugs/?45047> Summary: textread.m: n lines used as repeat count in strread Project: GNU Octave Submitted by: None Submitted on: Thu 07 May 2015 04:09:37 PM UTC Category: Octave Function Severity: 3 - Normal Priority: 5 - Normal Item Group: Incorrect Result Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: 3.8.2 Operating System: Any _______________________________________________________ Details: "The optional input n specifies the number of data lines to read; in this sense it differs slightly from the format repeat count in strread." While n is being utilized as the nlines argument in textread it is also being passed into strread as the repeat count since the argument is never removed from varargin. A simple fix would be to change the function signature such that nlines is an explicit argument initialized to INF and not passing in n as the first varargin element. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?45047> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |