Asked by madhan ravi
on 25 Aug 2019 at 5:38

Is there any other way to perform such operation?

c = {rand,rand(4)};

z = @(...) mean(...);

z(c{:})

The same can be achieved using cellfun(), but is it possible only through anonymous function?

Opportunities for recent engineering grads.

Apply Today
## 14 Comments

## Walter Roberson (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738726

## Walter Roberson (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738728

## madhan ravi (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738756

## Bruno Luong (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738759

## madhan ravi (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738760

## Bruno Luong (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738763

## madhan ravi (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738765

## Bruno Luong (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738767

## madhan ravi (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738769

## madhan ravi (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738773

## Walter Roberson (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738872

## madhan ravi (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738890

## Walter Roberson (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_738899

## madhan ravi (view profile)

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/477479-is-there-a-possibility-to-use-varargin#comment_739518

Sign in to comment.