help-octave
[Top][All Lists]
Advanced

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

Re: Passing arguments to a script.


From: PetrSt
Subject: Re: Passing arguments to a script.
Date: Tue, 9 Jul 2013 04:41:53 -0700 (PDT)

assignin and evalin can be helpfull, but if the caller of the script is a
command line (base workspace), then the workspace of the script should be
identical to the caller (base).
You can try from the command line:
clear all;
whos
x=2;
scriptwithfun;
whos
y

,where scriptwithfun is a script with single line, e.g. y=2.*x;
If this work, then you can call your script with
name = "name";
loadTestData;



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Passing-arguments-to-a-script-tp4655329p4655425.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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