[Top][All Lists]

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

Re: function help

From: Juan Pablo Carbajal
Subject: Re: function help
Date: Thu, 23 Feb 2012 16:23:02 +0100

On Thu, Feb 23, 2012 at 4:10 PM, Doug Stewart <address@hidden> wrote:

On Thu, Feb 23, 2012 at 4:26 AM, Tom Bohdan <address@hidden> wrote:

I have had no success with finding why the following doesn't work. I have tried many examples in Octave's Help and they don't work either.

Why is it that if you type each line into the command line then the following works:

function total=addr(x,y)





but if i put the above lines into a m-file then the interpreter spits out x undefined etc.

This happens for all the functions i have found in the LSODE examples etc. If you type them one by one at the command line it works but not in a script file. What am i missing ???



Help-octave mailing list

It works fine for me.

What os 
what ver. of octave
Are you sure you don't have a capital X mixed with a small x?


Help-octave mailing list

Are you saving the m-file sin the directory that is shown when you run the command
> pwd
in the Octave terminal?

M. Sc. Juan Pablo Carbajal
PhD Student
University of Zürich

reply via email to

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