[Top][All Lists]

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

Re: Calling functions

From: Andy Buckle
Subject: Re: Calling functions
Date: Wed, 18 Aug 2010 09:36:12 +0100

On Wed, Aug 18, 2010 at 9:23 AM, dirac <address@hidden> wrote:
> Hi James,
> your reply has been useful. The function I am calling has three inputs
> (arguments I believe they are called) but there are many different
> operations that and calculations that I do. How do I define the output of
> the function as all I want to get out is one vector. I hope this kind of
> makes sense and isn't too blindingly obvious!
> Regards
> Martin

Something like this in an m-file. out is the return value.
function out=myfunc(in1, in2)
  % some stuff
  out = theAnswer
When I googled "octave function". This site was the third hit.

/* andy buckle */

reply via email to

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