[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
- Wikibook on octave, Nicolas Pettiaux, 2007/01/29
- Re: Wikibook on octave, David Bateman, 2007/01/29
- Evaluating a string in octave,
Doug Stewart <=
- Re: Evaluating a string in octave, antonio palestrini, 2007/01/29
- Re: Evaluating a string in octave, Muthiah Annamalai, 2007/01/29
- Re: Evaluating a string in octave, antonio palestrini, 2007/01/29
- Re: Evaluating a string in octave, antonio palestrini, 2007/01/29
- Re: Evaluating a string in octave, David Bateman, 2007/01/29
- Re: Evaluating a string in octave, Doug Stewart, 2007/01/29
Re: Wikibook on octave, Nicolas Pettiaux, 2007/01/29
Re: Wikibook on octave, Nicolas Pettiaux, 2007/01/30