help-octave
[Top][All Lists]
Advanced

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

Function problem


From: blah BLABBER
Subject: Function problem
Date: Thu, 24 Nov 2005 17:45:54 -0800 (PST)

If I define the following function:

function t (x)
x**2
endfunction

It seems that I cannot multiply this function by a  constant.

For example:

Octave:1> 2 * t(4)

gives an error. The error says: "evaluating binary operator * "

Can anyone explain why this is ? This does not happen to me with other programs.

Thanks much.



Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
reply via email to

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