I'm attempting to use the rowfun function as such:
A = rowfun(@(x,y) etime(datevec(y), datevec(x)), B(:,3:4));
However when I do this I get the following error:
Undefined function 'rowfun' for input arguments of type 'function_handle'.
This doesn't make any sense however, as the signature of the method explicitly states that the method takes a function handle. So what am I doing wrong here?
Best Answer