[Top][All Lists]

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

Re: octave and oo

From: Ernst Reissner
Subject: Re: octave and oo
Date: Sun, 14 Nov 2010 09:18:02 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101026 SUSE/3.0.10 Thunderbird/3.0.10

Dear John,

OK I tried:

>   function retval = DocPolynom(c)
>      % Construct a DocPolynom object using the coefficients supplied
>      if isa(c,'DocPolynom')
>         obj.coef = c.coef;
>      else
>         obj.coef = c(:).';
>      end
>      retval = class (obj, 'DocPolynom');
>   end
> and it should work.
and it seems to bring me one step further.
This time i obtain:

octave:2> c = double(p)
error: no subsindex method defined for class DocPolynom

OK, i tried to provide a subsindex method but did not succeed.
The example is from site

and I think it would be best to rework this site so that the examples
work as described.


reply via email to

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