octave-maintainers
[Top][All Lists]
Advanced

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

How to make a read variable av lvalue?


From: John W. Eaton
Subject: How to make a read variable av lvalue?
Date: Wed, 23 Jan 2008 02:54:28 -0500

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]