help-octave
[Top][All Lists]
Advanced

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

Re: OOP in Octave


From: David Bateman
Subject: Re: OOP in Octave
Date: Sun, 13 Sep 2009 19:08:09 +0200
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

Lukas Reichlin wrote:
Dear Octave Community

Since the control package needs to be rewritten in an oop fashion, I started to play around with some Matlab examples. However, Octave gives a parsing error when I try to run an example:

parse error near line 9 of file /Users/lukas/Desktop/polynom/@DocPolynom/DocPolynom.m

  syntax error

>>>    end
         ^

error: evaluating argument list element number 1
parse error near line 9 of file /Users/lukas/Desktop/polynom/@DocPolynom/DocPolynom.m

  syntax error

>>>    end
         ^

error: evaluating argument list element number 1
error: called from:
error:   /Users/lukas/Desktop/polynom/polytest.m at line 5, column 3
octave-3.2.2:5>

The code is from the MathWorks without any changes, it runs perfectly in Matlab, so it should be OK. What do I need to change to get it up and running in Octave?

Thanks for any help

Regards,
Lukas


classdef DocPolynom
There is no classdef in Octave yet, though some preliminary work is done.. There is only the old matlab OOP style code in octave (ie tough with the @ directories). The matlab docs for this style of coding are at

http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/pre-version_7.6_oop.pdf

and there is a chapter in the Octave manual in 3.2.2 on the OOP support in octave

D.


--
David Bateman                                address@hidden
35 rue Gambetta                              +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE            +33 6 72 01 06 33 (Mob)



reply via email to

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