octave-maintainers
[Top][All Lists]
Advanced

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

Re: How to make a read variable an lvalue?


From: Svante Signell
Subject: Re: How to make a read variable an lvalue?
Date: Wed, 23 Jan 2008 09:04:31 +0100

Sorry, I will send to the help list. Can they also answer how much
slower eval() is for function calls compared to using fixed names?

On Wed, 2008-01-23 at 02:54 -0500, John W. Eaton wrote:
> The maintainers list is for discussions about the development of
> Octave.  For questions about using Octave, please use the
> address@hidden list.
> 
> Thanks,
> 
> jwe
> 
> 
> On 23-Jan-2008, Svante Signell wrote:
> 
> | Dear list,
> | 
> | I have the following problem when coding in Octave/Matlab. After reading
> | a string from an external file into a variable, like x=fscanf(...)
> | resulting in x='string' how can I use this variable content as an
> | lvalue, like x.a='something', where x is replaced by its string value,
> | resulting in string.a='something' instead of x.a='something'.
> | 
> | For functions calls eval() can be used but what about string
> | substitution? BTW: We are writing som general software in Matlab/Octave
> | and are planning to use eval() extensively in loops. How slow it is
> | compared to fixed function calls?
> | 
> | Thanks


reply via email to

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