Info

This question is closed. Reopen it to edit or answer.

Is there a possibility to use varargin()?

1 view (last 30 days)
madhan ravi
madhan ravi on 25 Aug 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
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?
  14 Comments
Walter Roberson
Walter Roberson on 25 Aug 2019
Using varargin in an anonymous function is okay.

Answers (0)

Tags

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!