[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
-------------------------------------------------------------
- calling a function within a multi-function file,
Brian Blais <=
- Re: calling a function within a multi-function file, Miquel Cabanas, 2005/05/02
- Re: calling a function within a multi-function file, Shai Ayal, 2005/05/03
- Re: calling a function within a multi-function file, Przemek Klosowski, 2005/05/04
- calling a function within a multi-function file, John W. Eaton, 2005/05/04
- calling a function within a multi-function file, John W. Eaton, 2005/05/04