From: Richard on
I want to pass elements of an array of objects of type A to a method of class B. The method will use properties of A and properties of B and set values of other properties of B as its output. Whats the syntax for this? I keep getting an error saying that theres an illegal number of input arguments?
Thanks.
RC
From: Steven Lord on

"Richard " <REMOVETHISrcaldwellie(a)yahoo.com> wrote in message
news:hqe593$jvn$1(a)fred.mathworks.com...
>I want to pass elements of an array of objects of type A to a method of
>class B. The method will use properties of A and properties of B and set
>values of other properties of B as its output. Whats the syntax for this? I
>keep getting an error saying that theres an illegal number of input
>arguments?

Assuming that the first input of the method is an object of class B, it
depends on how the author of class B has defined the method. Since you
don't show that, there's no way for anyone here to give you any advice.

If the first input of the method is NOT an object of class B, you may not
actually be invoking the method at all.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ