[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Create function
From: |
mmuetzel |
Subject: |
Re: Create function |
Date: |
Wed, 29 Nov 2017 05:44:08 -0700 (MST) |
If you save that code into one single file and want to execute that, you have
to indicate that it should be run as a script. This can be done by simply
adding a line with "1;" before your function definition. Otherwise, Octave
will try to execute your file as a function and will be missing its input
arguments. Hence the error you are seeing.
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html