help-octave
[Top][All Lists]
Advanced

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

calling a function within a multi-function file


From: Brian Blais
Subject: calling a function within a multi-function file
Date: Sun, 01 May 2005 22:35:00 -0400
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)

Hello,

If I have the following function file test.m

function y=test(x)
  y=x;
endfunction

function y=test2(x)
  y=2*x;
endfunction
%------------------------------


Is there a way to call function test2 directly, even though it is in
test.m?  I could use the source command, but then I have to do that
manually every time I change the file.  Is there another way?


                        thanks,

                                Brian Blais
--
-----------------

            address@hidden
            http://web.bryant.edu/~bblais



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



reply via email to

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