help-octave
[Top][All Lists]
Advanced

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

Re: Octave question about functions


From: Jordi Gutiérrez Hermoso
Subject: Re: Octave question about functions
Date: Mon, 14 Mar 2011 16:40:27 -0600

On 14 March 2011 14:19, findtype <address@hidden> wrote:
> A newly written function will do nothing when it's run. The only
> thing that happens is that the octave prompt is replaced by simply
> ">", and the screen seems to have entered some kind of editing mode.

It sounds like you were typing the function interactively and didn't
close it (or didn't close a for loop, or some other block). So close
it, endfunction, endfor, endif, whatever. It's hard to know for sure
without knowing what you typed and how and where.

Typing functions interactively into the prompt is ok for short things,
but you probably want to find yourself a text editor and type your
code in there.

HTH,
- Jordi G. H.


reply via email to

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