MATLAB: Is this because of the variable being in a table? If so, how to convert to an array.


Error using sum Invalid data type. First argument must be numeric or logical.
Error in var (line 148) y = sum(abs(x – sum(x,dim)./n).^2, dim) ./ denom;
Error in std (line 51) y = sqrt(var(varargin{:}));

Best Answer