help-octave
[Top][All Lists]
Advanced

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

Re: Function ending.


From: Joe Koski
Subject: Re: Function ending.
Date: Tue, 18 Jul 2006 20:28:36 -0600
User-agent: Microsoft-Entourage/11.2.5.060620

on 7/18/06 7:33 PM, John Darrington at address@hidden 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.
> 
> Looking at the FAQ, http://www.gnu.org/software/octave/FAQ.html#SEC24
> it cites three categories of differences:
> 
>    1. Irrelevant.
>    2. Known differences, perhaps configurable with a user preference variable.
>    3. Unknown differences.
> 
> Clearly this doesn't belong to the #1 and it's not mentioned anywhere in
> the documentation, so despite this difference being extremely obvious,
> I have to conclude that it's an "Unknown difference".
> 
> Does anyone have any ideas on how to overcome this problem?
> 
> To whom should I report this Unknown Difference?
> 
John,

In converting MATLAB code, I have never had a problem with end statements. I
just leave them alone, and the code works in octave. The endif, endfunction,
etc. is optional, but can be useful for debugging. Most of my functions
don't have an end statement associated with the function statement at all,
and they still work.

Finding the proper equivalents for some of the MATLAB ToolBox routines is
where I find the challenge to be.

Joe






reply via email to

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