help-octave
[Top][All Lists]
Advanced

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

How to do subsref for a new data type in octave


From: jiaguo
Subject: How to do subsref for a new data type in octave
Date: Fri, 18 Jun 2004 14:04:29 -0500

Hi all,

Thanks a lot for your quick responses to my questions. They
are really helpful. Now I have another question:

I created a new data type in octave by adding a new class. Now
I would like to access the members of the new class in octave
script. I tried to define subsref and subsasgn methods in the
class and hope the methods can be overloaded when I write in
octave something like " obj.field ". However, it seems I
haven't created such a connection and an error message says
"can't perform indexing operations for 'myclass' type". 

Can anybody tell me if it is the correct way to do the
indexing and what is missing in my implementation.

Thanks, 

Jia



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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