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: problem with calling a class method
Replies: 3   Last Post: Nov 27, 2012 12:23 PM

Advanced Search

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

Posts: 10
Registered: 11/24/12
problem with calling a class method
Posted: Nov 24, 2012 4:36 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,
How do I call a method with a parameter control handler?
The following example returns the error:
Undefined function 'setIndex' for input arguments of type 'double'.
Thanks,
Stan

classdef MyClass< handle
properties
hpm_1; hpm_2; % popupmenu handlers
...
end
methods
...
function setIndex(obj, val)
set(obj, 'Value', val);
end
function Item(obj)
setIndex(obj.hpm_1, 1);
setIndex(obj.hpm_2, 1);
end
end




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.