help-octave
[Top][All Lists]
Advanced

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

Re: Is it possible to translate a string with operators into an actual e


From: Markus Bergholz
Subject: Re: Is it possible to translate a string with operators into an actual equation?
Date: Tue, 16 Sep 2014 19:46:57 +0200



On Tue, Sep 16, 2014 at 7:42 PM, bobkarh <address@hidden> wrote:
Let´s say I have the string a= "2+2" . So that class(a) = char. Is there a
way to transform the string "2+2" into the actual equation a=2+2 so that the
answer is a = 4???

octave:1> a="2+2"
a = 2+2
octave:2> a=eval(a)
a =                    4

 



--
View this message in context: http://octave.1599824.n4.nabble.com/Is-it-possible-to-translate-a-string-with-operators-into-an-actual-equation-tp4666541.html
Sent from the Octave - General mailing list archive at Nabble.com.

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave



--
icq: 167498924
XMPP|Jabber: address@hidden

reply via email to

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