Mon 18 May 2015 04:14:11 PM UTC, comment #1:
This sound like you've saved your code as agm.m.
If you hit the "run" button then "agm", without arguments gets executed.
Please try to save your code as myscript.m and "run" again.
Btw: Use a = zeros (1, 11), instead a=[0,0,0,0,0,0,0,0,0,0,0];
And if you want to use a and b inside your function they have to be made global.
|
Mon 18 May 2015 03:07:42 PM UTC, original submission:
Dear Supporter,
Thank you for the good work you are doing!
As I am trying to understand the usage of
octave, I am working through some small
subroutines first.
If started in the commands window, it'll
work like a charm.
Yet, if in the editor window, pressing save
and execute creates an error message, saying
that one of the function parameters, when stored
into another variable, is not defined.
I don't get it.
With the given error message, I don't
know what I have to do so that my routine
is accepted and executed from the editor
window.
Best regards
Jörg
|