[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Q: dynamic access to the interpreter
From: |
Ben Sapp |
Subject: |
Re: Q: dynamic access to the interpreter |
Date: |
Mon, 02 Apr 2001 08:36:42 -0600 |
Yes, you can access any variable from the workspace in a .oct file. You
just need to know the name of the variable. Look in the 2001 help
archives for my response to "accessing workspace variables from .oct
module?". It gives a simple example that should do most of what you
want. In the example I use curr_sym_tab. You may need to use
top_level_sym_tab depending on the scope of the variables you want to
pass as parameters.
Andrei Romanenko wrote:
>
> Hello,
>
> How can I access, say, a vector created in an interpreter session from an
> .oct file? I could be useful for passing parameters to a function that
> is to be integrated with lsode or ddasl. Thank you!
>
> Regards,
> Andrei Romanenko
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
--
Ben Sapp Los Alamos National Laboratory
email: <mailto:address@hidden> Phone: (505)667-3277
Fax: (505)665-7920 URL: http://www.neutrino.lanl.gov/
--
-------------------------------------------------------------
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
-------------------------------------------------------------