[Top][All Lists]

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

Function ending.

From: John W. Eaton
Subject: Function ending.
Date: Tue, 18 Jul 2006 22:50:54 -0400

On 19-Jul-2006, John Darrington wrote:

| I've been trying to get some MATLAB code to work with Octave.
| The most obvious difference between the two programs is that MATLAB
| expects functions to be closed with "end" whereas Octave expects
| "endfunction", even when running with --traditional.

The only place where Matlab must have an end keyword to match a
function keyword is if you are using nested functions.  Are you doing
that?  If so, the keyword is the least of your problems because Octave
does not support nested functions.  Otherwise, as Joe says, you should
be able to leave the end keywords alone.


reply via email to

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