[Top][All Lists]

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

Re: Evaluating a string in octave

From: antonio palestrini
Subject: Re: Evaluating a string in octave
Date: Mon, 29 Jan 2007 18:46:20 +0100

 either:  z=inline(q); z(5)
 or:      inline(q)(5);

wonderful short code!!!!
It works, even in my octave 2.1.69, with many parameters in the string!
And you don't have to remember upper case of parameters :-)

[oct 8]  q="2-k+h+f-g";
[oct 9]  z=inline(q)(5,2,2,2)
z = 5


Prof. Antonio Palestrini
DSGSS - University of Teramo, Italy
e-mail: address@hidden

reply via email to

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