help-octave
[Top][All Lists]
Advanced

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

error: end: no method for class double


From: Lukas Reichlin
Subject: error: end: no method for class double
Date: Mon, 16 Dec 2013 13:55:06 +0100

Dear Octave Community

I'm trying to overload "end" for my quaternion package such that the following 
two lines work as expected:

        q = quaternion (eye (3))
        q(1:end)

To do so, I created @quaternion/end.m:

function ret = end (q, k, n)

  ## ret = end (q.w, k, n);
  ## ret = feval ("end", q.w, k, n);
  ret = feval (@end, q.w, k, n);
  ## ret = builtin ("end", q.w, k, n);

endfunction

My plan is to use the "end" of double (q.w is a matrix of type double).
However, none of the four variants seem to work. At least the variant using 
builtin seems to work with Matlab. Did I miss something or shall I file a bug 
report?

Thanks for any hints and best regards,
Lukas



reply via email to

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