Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: MATLAB Concatenation Rules for objects
Replies: 4   Last Post: May 9, 2013 9:41 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
kzelechowski@e3tech.local

Posts: 27
Registered: 4/30/13
MATLAB Concatenation Rules for objects
Posted: May 8, 2013 3:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

class (handle (0)) == 'root';
class (libpointer) == 'lib.pointer';
class ([ libpointer, (handle (0)) ]) == 'handle';
% Why? The documentation says: MATLAB does not convert objects to a common
superclass unless those objects derive from a member of a heterogeneous
hierarchy.
% This is not the case:
isa (libpointer, 'math.mixin.Heterogeneous') == 0;
% So what is going on here? Moreover:
numel (superclasses (libpointer)) == 0;
numel (superclasses (handle (0))) == 0;
% So if they were heterogeneous, the superclass would be hidden. I am not
sure how to test for that.




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.