[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how do I configure custom subsref() to correctly handle 1:end range
From: |
withaar |
Subject: |
how do I configure custom subsref() to correctly handle 1:end range |
Date: |
Wed, 05 Jun 2013 09:54:38 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
Hi all,
I am making some improvements I hope to the quaternion toolbox. The
following does not work:
q = quaternion(ones(1,10));
a = q(1:end);
The range "1:end" appears in subsref(q,s) as:
s =
scalar structure containing the fields:
type = ()
subs =
{
[1,1] = 1
}
and only the first element is returned.
How can I fix this?
Thanks!
Willem
- how do I configure custom subsref() to correctly handle 1:end range,
withaar <=