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

1 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Argument Definitions 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by