[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with functions
From: |
Matt Matthews |
Subject: |
Re: Help with functions |
Date: |
17 Jul 2003 23:04:23 -0400 |
On Thu, 2003-07-17 at 22:50, Fausto Arinos de A. Barbuto wrote:
> The obvious question is then: how do I do that?
When y = exp(-2.0*t) and z = cos(t), where t is a vector, you'll want to
use component-wise multiplication with the operator .*
plot( t , y.*z)
There is also ./ and .^ for doing component-wise division and
exponentiation, respectively.
Hope that helps.
matt
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Help with functions, Fausto Arinos de A. Barbuto, 2003/07/17
- Re: Help with functions,
Matt Matthews <=