[Top][All Lists]

[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.


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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