[Top][All Lists]

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

RE: octave 4.0.3 issue

From: Carlo de Falco
Subject: RE: octave 4.0.3 issue
Date: Tue, 20 Sep 2016 18:20:23 +0200

Il 20 set 2016 6:07 PM, "Bradley D. Slagle" <address@hidden> ha scritto:
> Hi.
>         I have attached the error message.  I think it might be an issue with the function file name.  Is it possible, if the function name file already existed and I try to over write the existing function file it would cause this issue?
> Thank you for helping me.
> -Brad


You need to save your function to a file before you can use it.

In Octave and Matlab the file name must be the same as the name of the function it contains with the extension .m added.

The file must be stored somewhere in octave's path in order to use it.

All this is explained in detail in the manual chapter on scripts and functions (I suspect you actually intended to write a script not a function) but that may be a bit hard to read if you start completely from scratch.

I instead suggest you go through one of the infinitely many Octave/Matlab step-by-step tutorials for absolute beginners that exist out there before you try to write your own functions.


reply via email to

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