help-octave
[Top][All Lists]
Advanced

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

varargin with executable octave scripts


From: mavram
Subject: varargin with executable octave scripts
Date: Tue, 12 Oct 2004 17:21:30 +0200
User-agent: Mutt/1.5.5.1+cvs20040105i

Sorry for the dumb question:
Example from info, very slightly modified, named autonome:

#! /usr/bin/octave -qf
printf ("%s", program_name);
for i = 1:nargin
    printf (" %s", argv{i});
endfor
printf ("\n");
size(argv)
nargin
who 

autonome addhour cleancat gracespectra
autonome
ans =

  3  1

  ans = 0

  *** dynamically linked functions:

  dispatch

  *** local user variables:

  i

Not the output I expected. Either I made some blunder(s) or the info is badly
out of tune with my version of octave (2.1.57).
Any suggestions ? I would like this script to input data from a file, to
be specified on the command-line.
System: Debian Linux testing/unstable, kernel 2.4.
Thanks for any advice/pointer,
Avraham



-------------------------------------------------------------
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]