help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: spaces and strings


From: John W. Eaton
Subject: Re: spaces and strings
Date: Fri, 25 Feb 2005 21:08:36 -0500

On 25-Feb-2005, Paul Laub <address@hidden> wrote:

| Try this
| 
| >> mark_as_command("lhooq")
| 
| where lhooq.m is an m-file describing a function. 
| 
| With my Octave 2.1.57 in Cygwin, it appears that 
| 
| >> lhooq 1 2 3 
| 
| only takes the first argument into the function.   

It should take all of them.  What happens for

  function foo (varargin)
    for i = 1:nargin
      printf ("%s\n", varargin{i});
    endfor
  endfunction
  mark_as_command ("foo");
  foo 1 2 3

?  It should print

  1
  2
  3

If not, then it is a bug, but also it is apparently fixed.

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]