help-octave
[Top][All Lists]
Advanced

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

Evaluating a string in octave


From: Doug Stewart
Subject: Evaluating a string in octave
Date: Mon, 29 Jan 2007 08:34:05 -0500
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)

I have a string in octave that looks like this:
( it was produced with my new Inverse Z Transform function)

+ 15 * (0.5)^(K) -35 * (0.7)^(K) + 20 * (1)^(K)
and I put this string in q

q = + 15 * (0.5)^(K) -35 * (0.7)^(K) + 20 * (1)^(K)

Now I want to give K a value and then evaluate the formula.

K=5
m=evaluate(q)



How do you do this?

Doug


reply via email to

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