为什么这个匿名函数不能与rowfun
一起使用?
>> T = table([43;52;67;28],[64;24;69;45])
>> rowfun(@(x) sum(x), T)
Error using tabular/rowfun>dfltErrHandler (line 497)
Applying the function '@(x)sum(x)' to the 1st row of A generated the following
error:
Too many input arguments.