The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Determining 'classname' such that isa(v,'classname') will be true
Replies: 5   Last Post: Apr 22, 2013 11:33 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 18
Registered: 5/18/11
Determining 'classname' such that isa(v,'classname') will be true
Posted: Apr 16, 2013 6:11 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Given an object v of a class, how can I determine all possible classname such that isa(v,'classname') will return true? For example, consider the following:

L1=isa(h,'ss'); % returns true, understandable
L2=isa(h,'numlti'); % returns true, understandable
L3=isa(h,'StateSpaceModel'); % returns true, understandable
L4=isa(h,'lti'); % returns true, how would I have known?
[L1 L2 L3 L4]

ans =

ans =

ans =

ans =

1 1 1 1

I just stumbled on 'lti' returning true for this case. How could I have found that programatically? In general, is there some function that has a functionality like:
c = whatis(v); % returns cell array c such that isa(v,c{i}) is true

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.