Can you do varfun(@(x) x, temp, 'GroupingVariables', {})?

2 views (last 30 days)
Alex
Alex on 31 Aug 2015
I am trying to construct a varfun statement where the GroupingVariables change. Something like
varfun(@(x) x, temp, 'GroupingVariables', groupingVars)
However, I am finding that when an empty array or cell array is supplied by groupingVars, varfun hangs. When you remove the 'GroupingVariables' name/value pair this code returns temp, as expected.

Answers (0)

Categories

Find more on Argument Definitions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!