From: Richard on
I'm trying to index into an array of objects passed as varargin using the following code

case 3
varargin(1)(2).propertyname


trying to access the propertyname property of the second object in the object array passed as the first argument to this method?

How can I make this work?

From: Yi Cao on
"Richard " <REMOVETHISrcaldwellie(a)yahoo.com> wrote in message <hqpa5s$1sa$1(a)fred.mathworks.com>...
> I'm trying to index into an array of objects passed as varargin using the following code
>
> case 3
> varargin(1)(2).propertyname
>
>
> trying to access the propertyname property of the second object in the object array passed as the first argument to this method?
>
> How can I make this work?
>

Should it be varargin{1}(2).propertyname?

HTH
Yi